I'm trying to control the button focus without using the tag autofocus=true, but it seems that doesn't work properly, do you think is necessary a pipe?
<button #btn_focus>
@ViewChild('btn_focus') firstNameElement: ElementRef;
ngAfterViewInit(){
this.firstNameElement.nativeElement.focus();
}
Thanks.