-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
28 lines (28 loc) · 989 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>TODO test</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="styles.css"/>
<script src="angular.min.js"></script>
<script src="app.js"></script>
<script src="todo.js"></script>
</head>
<body ng-app="myApp">
<div id="content_container">
<div ng-controller="todoController">
<ul class="unstyled">
<li ng-repeat="todo in todoList track by $index">
<todo-item todo-data="todo"></todo-item>
</li>
</ul>
<form ng-submit="addTodo()">
<input type="text" ng-model="newTodoText" size="30" placeholder="add new todo here" required="required">
<input class="btn-primary" type="submit" value="add">
</form>
<button ng-click="saveTodoItems()">Save</button>
</div>
</div>
</body>
</html>