Performance of ngFilter and Parse

Parse objects

Quick glance at a Parse object

Solution

Parse attributes property

<div ng-controller="MyCtrl">
<input type="text" ng-model="search.attributes">
<ul>
<li ng-repeat="item in items | filter:search">
{{item.field}}
</li>
</ul>
</div>

Explicitly define filter fields

angular.forEach(items, function(value) {
value.filterFields = {
'field1': value.field1,
'field2': value.field2,
'field3': value.relation.field3,
...
}
});
<div ng-controller="MyCtrl">
<input type="text" ng-model="search.filterFields">
<ul>
<li ng-repeat="item in items | filter:search">
{{item.text}}
</li>
</ul>
</div>

Tech enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jasper Kuperus

Jasper Kuperus

Tech enthusiast

More from Medium

Stem Cell Therapy and Peripheral Neuropathy

Plessy v. Ferguson

Live in the Moment

Evaluation techniques for interactive systems