December 2017
Beginner
372 pages
10h 32m
English
This function is pretty simple; it will just set the property identifying that we are going to add a new task and set the focus on the input element as shown below.
enableAddtask() { let input = this.el.nativeElement .getElementsByClassName('add-task')[0] .getElementsByTagName('input')[0]; setTimeout(function () { input.focus(); }, 0); }
Read now
Unlock full access