This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues/pull-requests.
|
(function () {
|
|
'use strict';
|
|
|
|
angular.module('ariaNg').directive('ngAutoFocus', ['$timeout', function ($timeout) {
|
|
return {
|
|
restrict: 'A',
|
|
link: function (scope, element) {
|
|
$timeout(function () {
|
|
element[0].focus();
|
|
});
|
|
}
|
|
};
|
|
}]);
|
|
}());
|