Skip to content

Instantly share code, notes, and snippets.

@wilsolutions
Created August 31, 2016 14:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wilsolutions/3ac3f9bcc2873d7fbc02307959db3c67 to your computer and use it in GitHub Desktop.
(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