ember.js - Filtering RecordArray in a child route to return a RecordArray? -
A model is trying to change my thoughts while changing the property. Im not sure if I'm on the right track or not , But goes here.
I have a basic resource named Lunch, which looks like this:
Model: Params {return.store.filter ('lunch', params, This.funcAll); } And I have a child service 'service' whose path looks like this:
Model: functions (return) {return.modelFor (' Lunch'). FilterProperty ('isServed', is true); As opposed to // as.store.filter ('noon'), when I use filters in child channels, I am able to do this ((Lunch), this.funcFilter ()}} I think because one filter gives a recordArrrr), but it does not work for me for another reason, can anyone be anyway, that I can return my child's track record record Which is a subset of the original model?
Works on the Filters collection. App.ColorsRoute = Ember.Route.extend ({Model: function () {this.store.find ('color'); this return.store.filter ('color', function () {Return true;});}}); App.ColorRoute = Ember.Route.extend ({models: functions} {this.store.find ('color', params.id);}, setupController: function (controller, model) {this._super (controller, Model); var cmod = this.modelFor ('colors'), subItems = cMod.filter (function) {return item.get ('color'). IndexOf ('e')> = 0;}) ; Console.log (subItems.get ('length'));}});
Comments
Post a Comment