AngularJS ng-focus Directive
The ng-focus directive is used to tell AngularJS what to do when an HTML element gets focused. It will not override the default onfocus event and both will be executed.
Syntax:-
< element ng-focus="expression" >< /element >
Further Explanation:-
ValueDescription expressionAn expression to execute when an element gets focused.