lundi 16 janvier 2017

Quering the Model in Ember JS

I have a model called Game in Ember. To access all the games I run

this.store.query('game').

Now, I would like to retrieve all the "upcoming games" how should I go about this?

  • Do I create a sub class of model Game.
  • Can I created a static method on Game e.g Game.getUpcoming?
  • Do I have to pass a filter to the Game

Thanks!




Aucun commentaire:

Enregistrer un commentaire