Searching in a list by using Aangular Js

We have learn about angular js, In this blog we search result in a list by angular js methodlogy

Searching in a list by using Aangular Js code (filter:test)

<div ng-app="myApp" ng-controller="customersCtrl">
  <table align="center" width="60%">
    <tr>
      <td colspan="3" align="right"><input type="text" ng-model="test"></td>
    </tr>
    <tr>
      <td>Group ID</td>
      <td>Group Name</td>
      <td>Group Description</td>
    </tr>
    <tr ng-repeat="x in group_name | filter:test">
      <td>{{ x.groupID }}</td>
      <td>{{ x.group_name }}</td>
      <td>{{ x.group_description }}</td>
    </tr>
  </table>
</div>

We got this blog from www.w3schools.com for blog more information Click Here

Leave a Reply