Thursday, September 14, 2017

Show the structure of Filter an Array Based on User Input.


Filter an Array Based on User Input

Example

<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>