Hi Björn,

Looks better. However, I have to break to you, renderer is deprecated. 
there is now renderer2, and it doesn't have an invokeElementMethod. 
replace it with an if (you need to make it safe) something like this:

ngAfterViewChecked() {
 if (this.setFocus && this.input $$ this.input.nativeElement) {
   this.nativeElement.focus(); // can do this because I check if there is a 
nativeElement above
   this.setFocus = false;
 }
}

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to