Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS Filter Table Columns Example
Keywords : Angularjs filter table data example, Angularjs filter table created with ng-repeat example, Filter table columns in angularjs example, Angularjs filter table columns / rows example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs filter specific records specific to column Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script> var app = angular.module("AngularfilterApp", []); app.controller("filterctrl", function ($scope) { $scope.users = [{ name: "Madhav Sai", age: 11 }, { name: "Suresh Dasari", age: 29 }, { name: "Rohini Alavala", age: 29 }, { name: "Praveen Kumar", age: 24 }]; }); </script> </head> <body ng-app="AngularfilterApp"> <h2>AngularJS Filter Table Columns</h2> <div ng-controller="filterctrl"> Only Name to Filter:<input ng-model="searchtxt.name" type="text" placeholder="Enter Only Name"><br /><br /> Only Age to Filter:<input ng-model="searchtxt.age" type="text" placeholder="Enter Only Age"><br /><br /> <table> <tr><th>Name</th><th>Age</th></tr> <tr ng-repeat="user in users | filter : searchtxt"> <td>{{user.name}}</td> <td>{{user.age}}</td> </tr> </table> </div> </body> </html>
Click Here to See Result
Result
Previous
Next