Simple directive that observes a passed in attribute that sets focus on the element or finds an input that can be focused on.
angular.module('testModule', ['angular-booleanTranslator']);
angular.module('testController', function($scope) {
$scope.testCondition = true;
});
<div ng-controller="testControler">
<input type="text" autofocus="{{testCondition}}"/>
</div>
Add a more definitive list of focusable inputs other than just INPUT