I have an Input in angular2/Ionic2 form
<input #input1 autofocus type="text" [ngModel]='searchString' name='searchText' required minlength="3" (ngModelChange)="onInputChange($event)">
I want to set focus on it when page/route change.
nativeElement.focus()
is not working as @ViewChild(#input1)
gives angular2 element not native html element.