December 2017
Beginner
372 pages
10h 32m
English
First up will be the Board template. The following is the code snippet for adding a new task:
<div class="add-task" (click)="enableAddtask()" > <input (keyup)="addtaskOnEnter($event)" (blur)="addtaskOnBlur()" [(ngModel)]="addtaskText"placeholder="Add a task" /> </div>
Here we have a div which encapsulates the add a task input area. We have three functions defined in this template namely, enableAddTask, addtaskonEnter and addtaskonBlur. Then we have a addTaskText property, which will represent the text entered by the user.
Read now
Unlock full access