Ok I think it's a simple question but I didn't found ;/ 

So in a component I have an label and when I click on it I switch label to 
input, and after I would give focus to input. I have many of this component 
in same page. 

I find how to do it with jQuery but I search a "Angular2 style" (if 
possible without jquery).

I try to replace this line 

$(this.elTest.nativeElement).find("#inputText").focus();


Any suggestion ?

Little sample:
http://plnkr.co/edit/yoY3T1cGW1sa5l5KGXiK?p=preview

-- 
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