mercredi 7 février 2018

Querying data through emberfire

I am new to ember js and creating a Shopping cart with database stored in Firebase. I am accessing total product data using model() { return this.store.findAll('product'); } I am thinking of implementing cart functionality by creating an array of product id which are added to cart by user for example orderarray:[1,2,3,6,7] and want to return data only belonging to these product ids which are in orderarray by querying it based on this array's values. Can anyone help me to query data accordingly. Thanks in advance




Aucun commentaire:

Enregistrer un commentaire