You could write a directive like so:
app.directive('textarea', function() {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
elem.blur(function() {
// Things are getting blurry!.. seriously though, execute blur logic here
});
}
};
});
You could also add one for inputs and then condense your blur logic into a service.