Created
May 27, 2015 16:54
-
-
Save benjamincharity/dd472fc0fe4578283bcf to your computer and use it in GitHub Desktop.
Use ng-show rather than ng-repeat's filter for better performance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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