i399exng2/app/list/list.html
2017-04-29 11:26:20 +03:00

11 lines
346 B
HTML

<input [(ngModel)]="newTaskTitle"/>
<button (click)="addNewTask()">Lisa ülesanne</button ><br><br>
<div *ngFor='let task of tasks'>
<a [class]="task.done ? 'done' : ''" routerLink="/view/{{ task._id }}">{{ task.title }}</a>
<input type="checkbox" [(ngModel)]="task.done"/>
<button (click)="deleteTask(task._id)">X</button>
</div>