Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment