forked from Avdhesh-Varshney/WebMasterLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (35 loc) · 1.39 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
<!DOCTYPE html>
<html lang="en" ng-app="QuickNotesApp">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QuickNotes</title>
<!--Link the css styles to index file -->
<link rel="stylesheet" href="styles.css">
</head>
<body ng-controller="NotesController">
<h1>QuickNotes</h1>
<div class="container">
<!-- Note Title input box -->
<input type="text" ng-model="newNote.title" placeholder="Title" class="note-input">
<!-- Note Body input box -->
<textarea ng-model="newNote.body" placeholder="Add text here" class="note-input"></textarea>
<!-- Add button -->
<button class="add-button" ng-click="addNote()">Add</button>
<!-- List of notes -->
<ul>
<li ng-repeat="note in notes">
<!-- Note Title -->
<strong>{{ note.title }}</strong><br>
<!-- Note Body -->
{{ note.body }}
<!-- Remove button for each note -->
<button class="remove-button" ng-click="removeNote($index)">Remove</button>
</li>
</ul>
</div>
<!--For linking the sceipt file to index file-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="app.js"></script>
</body>
</html>