This is an example for a table to search for eachColumn and for all colums in an input all. Heres the example ->pnlkr All can be done in the view. HTML
<!DOCTYPE html> <html ng-app="plunker"> <head> <meta charset="utf-8" /> <title>AngularJS Plunker</title> <script>document.write('<base href="' + document.location + '" />');</script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css"/> <link rel="stylesheet" href="style.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular-animate.js"></script> <script src="app.js"></script> </head> <body ng-controller="MainCtrl as rchCtrl"> <div> <label>Search</label> <input ng-model="searchAll"> <hr> <table class="table table-striped"> <thead> <tr> <th>ID</th> <th>NAME</th> <th>AGE</th> </tr> </thead> <tbody> <tr> <td> <input ng-model="searchID"> </td> <td> <input ng-model="searchName"> </td> <td> <input ng-model="searchAge"> </td> </tr> <tr ng-repeat="item in peoples |filter: {id:searchID, name:searchName, age:searchAge} | filter:searchAll"> <td>{{item.id}}</td> <td>{{item.name}}</td> <td>{{item.age}}</td> </tr> </tbody> </table> </div> </body> </html>
CONTROLLER
var app = angular.module('plunker', ['ngAnimate']); app.controller('MainCtrl', function($scope) { $scope.name = 'World'; $scope.peoples = [ {id:1, name:'Kalesi', age:50}, {id:2, name:'Jon', age:43}, {id:3, name:'Jonas', age:34}, {id:4, name:'Sam', age:29}, {id:5, name:'Samuel', age:50}, {id:6, name:'Tyrion', age:20} ]; });