forked from colorfest/angularjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (36 loc) · 1.02 KB
/
index.html
File metadata and controls
41 lines (36 loc) · 1.02 KB
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
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<title>AccioCode AngularJS Tutorial - Sorting and Filtering and Ng-Repeat</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script src="angularjstutorial-deps.js"></script>
<script src="angularjstutorial.js"></script>
<link rel="stylesheet" href="angularjstutorial.css">
</head>
<body>
<div class="mainContainer" data-ng-app="RavensApp">
<h1>Baltimore Ravens</h1>
<input type="text" data-ng-model="search.$">
<div data-ng-controller="ravensCtrl">
<table class="table table-striped">
<thead>
<tr>
<th>Player</th>
<th>Position</th>
<th>Number</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="player in players | filter:search | orderBy:'name' | limitTo: 3">
<td>{{player.name}}</td>
<td>{{player.position}}</td>
<td>{{player.number}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>