Hi Jose,
you can try to bind the html autofocus attribute to a boolean value
<input type="text"autofocus="{{this.isFocused}}"/>
Il giorno giovedì 27 settembre 2018 20:51:25 UTC+2, José Vilmar Estácio de
Souza ha scritto:
>
> Hi all.
>
> Probably a dumb question, but how can I set focus to an element using
> angular 6?
>
> I'd like to set focus to the first input element after create a form.
>
> I tried google without success.
>
> Thanks.
>
>
> --
> [image: José Vilmar, Telefones: 21 2555-2650 e 21 98868-0859, Skype:
> jvilmar]
>
--
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.