mercredi 18 janvier 2017

Iterate over an ember model query

this.store.findAll('game').then(function(results){
   // RUN SOME OPERATION ON THEM
})

I would like to know how I can play with the results variable. I understand I can do

results.get('firstObject') // returns the first object.

I'd like to know everything else I can do with it. Is there any api documentation for the results collection?

Thanks!




Aucun commentaire:

Enregistrer un commentaire