-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (33 loc) · 923 Bytes
/
index.html
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>
<head>
<title>Belajar AngularJs</title>
</head>
<body ng-app="FirstApp">
<div ng-controller="IndexController">
<form>
<p>Fill the form</p>
<div>
<label>Name</label>
<input type="text" ng-model="newName">
</div>
<div>
<label>Phone</label>
<input type="text" ng-model="newPhone">
</div>
<input type="button" value="Add" ng-click="addPerson()">
</form>
<h2>The list</h2>
<p>The names that were added with the form.</p>
<ul>
<li ng-repeat="person in people">
<button ng-click="deletePerson( person.id )">Delete</button>
{{ person.name }} {{ person.phone }}
</li>
</ul>
</div>
<script src="js/angular.min.js"></script>
<script src="js/module/app.js"></script>
<script src="js/controllers/IndexController.js"></script>
</body>
</html>