Last active
August 29, 2015 14:05
-
-
Save markbrown4/826f8b816e37b61b5c86 to your computer and use it in GitHub Desktop.
Angular's fuzzy search
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" placeholder="Search for your team" ng-model="team_query"> | |
<ul class="teams" ng-show="team_query.length > 2"> | |
<li ng-repeat="team in teams | filter : team_query | limitTo : 5"> | |
<img ng-src="{{ team.avatar_url }}"> | |
<h2>{{ team.name }}</h2> | |
<small>{{ team.member_count }}</small> | |
<p>{{ team.bio }}</p> | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment