mardi 29 septembre 2015

this.store.find is not a function

i would like to get all my events from the API ROUTE /events (GET) in my IndexRoute, so i'm trying like this:

SiteApp.IndexRoute = Ember.Route.extend({
 model: function() {
  return this.store.find('events');
 }
});

And is returning the error:

this.store.find is not a function

I'm not understand why this.

I'm loading the libs in this sequence:

jQuery
Ember Data
Ember Template Compiler
Ember Debug

Thanks.




Aucun commentaire:

Enregistrer un commentaire