samedi 1 octobre 2016

Getting a random record with ember data

I've stored a collection of records in a firebase database. I've connected the firebase database to my ember app using emberfire. I 'd like to get just one random record from the collection every time I push a button. In my controller is there a specific method that I can use for this action? Something like 'this.store.random...??" How would you implement this action? Thanks Sandro




Aucun commentaire:

Enregistrer un commentaire