mercredi 29 juillet 2015

ember model.reload() is not a function?

I want to reload my model in my controller,and I read the document from here

so I defined the action:reload in my controller and route both,such as:

 reload:function(){
     this.get('model').reload();
   }

when I triggered the action use this.send('reload'),it comes out the error this.get(...).reload is not a function,so did I misunderstand the document?




Aucun commentaire:

Enregistrer un commentaire