-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (35 loc) · 1.08 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
<!Doctype html>
<html lang="en" ng-app="ngTodo">
<title> List Gen </title>
<head>
<script src="angular.js"></script>
<link rel="stylesheet" type="text/css" href="font-awesome.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div></div>
<div ng-controller="mainController">
<input type="text" ng-model="user.title" placeholder="Title">
<input type="text" ng-model="user.details" placeholder="Details">
<button class="addButton" ng-click="addTodolist(user)"> Add
<i class="fa fa-plus" aria-hidden="true"></i>
</button>
<br> <br>
<input type="text" ng-model="search" placeholder="Search">
<i class="fa fa-search" aria-hidden="true"></i>
<h2> Things to Do </h2>
<div class="myList" ng-repeat="Todo in todolists | filter:search">
<h2>
{{ Todo.title }} :
</h2>
<p>{{ Todo.details}}</p>
<button type="button" ng-click="deleteTodolist($index)">
<i class="fa fa-trash-o fa-3x"></i>
</button>
</div>
</div>
<div></div>
<div></div>
<script src="main.js"></script>
</body>
</html>