I have a route with model person:
export default Ember.Route.extend({
model: function(){
return this.store.findAll('function');
}
});
I want to modify the data in this model in my controller:
export default Ember.Controller.extend({
actions:{
justLog: function(){
this.get('model') // ???
}
}
});
but this.get('model');
returns Class {store: Class, isLoaded: true, manager: Class, isUpdating: false, __ember1463955537869: "ember357"…}
and i cant get the data out of it.
Aucun commentaire:
Enregistrer un commentaire