Skip to content

Instantly share code, notes, and snippets.

View pstrinkle's full-sized avatar

Patrick Venture pstrinkle

View GitHub Profile
@jpoehnelt
jpoehnelt / Angular Blur Directive
Created November 25, 2014 00:37
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();
});
}
};
}]);