note preview, closes #1

This commit is contained in:
Mo Bitar
2017-01-21 19:35:26 -06:00
parent a5976b0416
commit e06b98059f
2 changed files with 18 additions and 2 deletions

View File

@@ -20,6 +20,8 @@
.note{"ng-repeat" => "note in ctrl.tag.notes | filter: ctrl.filterNotes",
"ng-click" => "ctrl.selectNote(note)", "ng-class" => "{'selected' : ctrl.selectedNote == note}"}
.name
.name{"ng-if" => "note.title"}
{{note.title}}
.note-preview
{{note.text}}
.date {{(note.created_at | appDateTime) || 'Now'}}