Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function() {
'use strict';
angular.module('starter')
.directive('applyFocus', function($timeout) {
return {
link: function(scope, element, attrs) {
$timeout(function() {
element[0].style.color = "blue";
element[0].focus();
});
}
};
});
} ());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment