Skip to content

Instantly share code, notes, and snippets.

@naveenrobo
Created September 21, 2017 11:53
Show Gist options
  • Save naveenrobo/1e934c36b7faec299d16e066c4de658c to your computer and use it in GitHub Desktop.
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
<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