After a quick test, the function getElementById is not defined for 
nativeElement.

I've checked into the prototype function of this.elTest.nativeElement and 
is seems that their is only these x functions available:
getElementsByClassName;
getElementsByTagName;
getElementsByTagNameNS;

Another point to mention is that in the current plunker context, the 
functions find is used and that is because the searched element can but is 
not necessarily a direct child on nativeElement.

Thanks,
Patrick

On Friday, February 26, 2016 at 2:26:24 PM UTC-5, Sander Elias wrote:
>
> what about:
>
> this.elTest.nativeElement.getElementById('inputText').focus()? just plain 
> old ES3 :)
>
> Regards
> Sander
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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