handle local deletion relationships

This commit is contained in:
Mo Bitar
2017-01-28 23:16:22 -06:00
parent 46e9e91f46
commit aa6388d8b0
6 changed files with 25 additions and 17 deletions

View File

@@ -20,7 +20,7 @@
%div{"infinite-scroll" => "ctrl.paginate()", "can-load" => "true", "threshold" => "200"}
.note{"ng-repeat" => "note in ctrl.tag.notes | limitTo:ctrl.notesToDisplay | filter: ctrl.filterNotes",
"ng-click" => "ctrl.selectNote(note)"}
"ng-click" => "ctrl.selectNote(note)", "ng-class" => "{'selected' : ctrl.selectedNote == note}"}
.name{"ng-if" => "note.title"}
{{note.title}}
.note-preview