Add an autofocus attribute to your input like this:
<input autofocus>
Then, set the focus on the first visible input with autofocus when angular is ready like this:
angular.element(document).ready(function() { $('input[autofocus]:visible:first').focus(); });
Let me know if you have another, better way.