-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
44 lines (44 loc) · 1.13 KB
/
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
42
43
44
<!doctype html>
<html ng-app>
<head>
<script src="js/angular-1.0.1.min.js"></script>
<script src="js/todo.js"></script>
<link rel="stylesheet" href="css/bootstrap.css">
<style>
.done-true {
text-decoration: line-through;
color: grey;
}
.hide {
display: none;
}
</style>
</head>
<body>
<div ng-controller="TodoCtrl">
<div class="{{listClass}}">
<span>{{remaining()}} of {{todos.length}} remaining</span>
<ul class="unstyled">
<li ng-repeat="todo in todos">
<input type="checkbox" ng-model="todo.done">
<span class="done-{{todo.done}}">{{todo.text}}</span>
</li>
</ul>
<form ng-submit="addTodo()">
<input type="text" ng-model="todoText" size="30"
placeholder="add new todo here">
<input class="btn-primary" type="submit" value="add">
</form>
</div>
<div class="{{archiveClass}}">
<span>{{archived.length}} total archived</span>
<ul class="unstyled">
<li ng-repeat="todo in archived">
<input type="checkbox" ng-model="todo.done" disabled>
<span>{{todo.text}}</span>
</li>
</ul>
</div>
</div>
</body>
</html>