Skip to content

Instantly share code, notes, and snippets.

@jpoehnelt
Created November 25, 2014 00:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jpoehnelt/5d29ecaa7a9b934defe6 to your computer and use it in GitHub Desktop.
Save jpoehnelt/5d29ecaa7a9b934defe6 to your computer and use it in GitHub Desktop.
For blurring angular ng-click elements on click.
app.directive('blur', [function () {
return {
restrict: 'A',
link: function (scope, element) {
element.on('click', function () {
element.blur();
});
}
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment