mardi 17 mai 2016

Update list of records in ember-data model

I am loading list of product in ember model.

products: this.store.findAll('products');

Now I have to add 1 property to each product and then it should save all models with only one network request.

I am updating property as below

product.set('reviewed', true);

I am looping through model.products and setting the property what is the best way to save all list of products at once.




Aucun commentaire:

Enregistrer un commentaire