-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
33 lines (31 loc) · 1.12 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
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>Pouchdb test</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script>
<script src="q.js"></script>
<script src="lodash.js"></script>
<script src="http://download.pouchdb.com/pouchdb-nightly.js"></script>
<script src="DB.js"></script>
<script src="main.js"></script>
</head>
<body>
<section ng-controller="NotesController">
<header>
<form id="addNote" ng-submit="addNote()">
<input id="new-note" type="text" ng-model="newNote" placeholder="Enter a note here" autofocus>
<button>Add</button>
</form>
</header>
<section>
<ul id="notes">
<li ng-repeat="note in notes" ng-click="removeNote(note)">{{note.body}}</li>
</ul>
</section>
<footer>
<p>Total number of notes: {{notes.length}}</p>
</footer>
</section>
</body>
</html>