I have a text input in a AngularDart component like the following:
<input type="email" id="inputFirstName" ng-model="cmp.inputFirstName">
How can I make the text input auto-focus every time the component shows?
I tried setting the html5 attribute autofocus, but that only works on the first time the component is displayed.
enteredView()
is from Polymer, the question is about Angular, butattach()
is the equivalent in Angular. – Tapping