In this example of Ng-Focus, We are setting focused variable to true on focus and false on blur of textbox. See the code
Ng-Focus