You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you say if add ability to pass to Collection methods not only plain objects, arrays and models, but also promise. Just add code like this to each method
very useful if you decided to change some of your methods from sync to async like
User=Model.extend({getProducts: function(){// wasreturnproducts.where({user_id: this.get('id')});// becomereturn$.get('/products',{user_id: this.get('id')});}});// but code same for sync and asyncbag.add(user.getProducts());
The text was updated successfully, but these errors were encountered:
What would you say if add ability to pass to Collection methods not only plain objects, arrays and models, but also promise. Just add code like this to each method
and so we can do
very useful if you decided to change some of your methods from sync to async like
The text was updated successfully, but these errors were encountered: