I'm working with a template that looks like this:
<label class="item item-input"
ng-class="{'focus':authData.username.focus}"> <--add class here if input:focus
<span class="input-label">Username</span>
<input type="text"
name="username"
ng-model="authData.username"
ng-focus="" <--check if focus
required ng-minlength="5" ng-maxlength="20">
</label>
Is there a way to determine if an input field is focused and then apply a class to the label without using an external function in the controller?