benjamincharity
5/27/2015 - 4:54 PM

Use ng-show rather than ng-repeat's filter for better performance.

Use ng-show rather than ng-repeat's filter for better performance.

<input type="text" data-ng-model="searchModel">

<li data-ng-show="(searchModel && ([contact.name.formatted]|filter:searchModel).length)">
  {{ ::contact.name.formatted }}
</li