Created
September 21, 2017 11:53
-
-
Save naveenrobo/1e934c36b7faec299d16e066c4de658c to your computer and use it in GitHub Desktop.
AngularJS : We can use the value of the input field as an expression in a filter
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
<div ng-app="myApp" ng-controller="namesCtrl"> | |
<p><input type="text" ng-model="test"></p> | |
<ul> | |
<li ng-repeat="x in names | filter : test"> | |
{{ x }} | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment