-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (34 loc) · 992 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
.spaner{
padding: 2px;
}
</style>
</head>
<body ng-app="todoApp">
<script src="js/angular.min.js"></script>
<script src="scripts/app.js"></script>
<div ng-controller="MainCtrl">
<div style="padding: 50px">
<h1>Angular Demo App</h1>
<span class="spaner">
<input type="text" ng-model="newTodo.text" placeholder="Enter To Do"> <button ng-click="add()">Add</button>
<input type="hidden" ng-model="newTodo.completed">
</span>
<br/>
<div style="padding-top: 10px" ng-repeat="item in todos">
<div>
<input type="checkbox" ng-model="item.completed">
<span ng-bind="item.text"></span>
<button ng-click="delete(item)">x</button>
</div>
</div>
<button ng-click="clearAll()">Clear Completed</button>
</div>
</div>
</body>
</html>