-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilterExample1.html
More file actions
36 lines (30 loc) · 970 Bytes
/
Copy pathfilterExample1.html
File metadata and controls
36 lines (30 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html> <!-- Directive starting point, angular initialize in the block.-->
<head>
<title>Hello World, AngularJS - ViralPatel.net</title>
<script type="text/javascript" src="custom/angular.min.js"></script>
<script type="text/javascript" src="js/filterExample1.js"></script>
</head>
<body >
<div ng-app="myModule">
<div ng-controller="myController">
Search by Name & salary:<input type="text" ng-model="filterTable"/><br/>
<!-- Search by salary:<input type="text" ng-model="filterTable.salary"/><br/>-->
<table>
<tr>
<th>Name</th>
<th>Dob</th>
<th>Gender</th>
<th>Salary</th>
</tr>
<tr ng-repeat="std in students | orderBy:sortColumn | filter:search"> <!-- | limitTo:applyRows:3 '+salary " | orderBy:sortColumn-->
<td>{{std.name | lowercase}}</td>
<td>{{std.dob}}</td>
<td>{{std.gender | uppercase}}</td>
<td>{{std.salary}}</td>
</tr>
</table>
</div>
</div>
</body>
</html>