|
@@ -6,17 +6,17 @@
|
6
|
6
|
<body>
|
7
|
7
|
<div ng-controller="NoteCtrl">
|
8
|
8
|
<h1>Notes</h1>
|
9
|
|
- <div class="note" ng-repeat="note in notes">
|
10
|
|
- <h3>{{note.title}}</h3>
|
11
|
|
- <p class="date" ng-if="note.createdDate">Created: {{note.createdDate | date:'medium'}}</p>
|
12
|
|
- <p class="body">{{note.body}}</p>
|
13
|
|
- </div>
|
14
|
9
|
<div class="new_note_form">
|
15
|
10
|
<h2>New note </h2>
|
16
|
11
|
<p><input ng-model="newNote.title" /></p>
|
17
|
12
|
<p><textarea ng-model="newNote.body"></textarea></p>
|
18
|
13
|
<p><input type="submit" ng-click="createNote(newNote)" /></p>
|
19
|
14
|
</div>
|
|
15
|
+ <div class="note" ng-repeat="note in notes">
|
|
16
|
+ <h3>{{note.title}}</h3>
|
|
17
|
+ <p class="date" ng-if="note.createdDate">Created: {{note.createdDate | date:'medium'}}</p>
|
|
18
|
+ <p class="body">{{note.body}}</p>
|
|
19
|
+ </div>
|
20
|
20
|
</div>
|
21
|
21
|
<script src="lib/angular/angular.js"></script>
|
22
|
22
|
<script src="js/app.js"></script>
|