I don't want to write complicated directive just to focus something. If the approach would be using the pure js it is acceptable. My question is how to catch the ng-show of angular.
<a ng-click="showInput=true">show</a>
<input type="text" ng-show="showInput" />
the above code show the input, how to focus it upon it appearance?