-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (28 loc) · 857 Bytes
/
index.html
File metadata and controls
28 lines (28 loc) · 857 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
<html ng-app="myApp">
<head>
<title>Angular Test v1.0</title>
</head>
<body>
<div class="container" ng-controller="HelloWorld">
<h1>Simple Binding</h1>
<div>{{greeting}}</div>
Enter your name: <input type="text" name="nameField" ng-model="nameField">
<p ng-if="nameField">
Hello {{nameField}}
</p>
</div>
<div class="container_list" ng-controller="DataController">
<h1>Simple ng-repeat</h1>
<input type="text" name="filterName" ng-model="filterName">
<ul>
<li ng-repeat="employee in employees | orderBy: 'name' | filter:filterName">{{employee.name}} - {{employee.address}}</li>
</ul>
<input type="text" name="nameField2" ng-model="nameField2">
<p ng-if="nameField2">
{{message(nameField2)}}
</p>
</div>
</body>
<script type="text/javascript" src="scripts/angular.min.js"></script>
<script type="text/javascript" src="scripts/scripts.js"></script>
</html>