Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 13.3: Added the list item view
  • Loading branch information
dotansimha authored and Dotan Simha committed Nov 22, 2016
1 parent b4b62c1 commit 9b19676
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/imports/components/list-item.ng2.html
@@ -0,0 +1,11 @@
<div class="list-item" [ngClass]="{'editing': editing, 'checked': todo.checked}">
<label class="checkbox">
<input type="checkbox" [checked]="todo.checked" (change)="checkedChange($event)" name="checked">
<span class="checkbox-custom"></span>
</label>

<input type="text" [value]="todo.text" (blur)="toggleEdit(false)" (focus)="toggleEdit(true)" (keyup)="updateText($event)" placeholder="Task name">
<a class="js-delete-item delete-item" (click)="remove()">
<span class="icon-trash"></span>
</a>
</div>

0 comments on commit 9b19676

Please sign in to comment.