AngularJS-translation icon indicating copy to clipboard operation
AngularJS-translation copied to clipboard

HowTo - implement ng-blur?

Open aztack opened this issue 12 years ago • 0 comments

 app.directive('myBlur',['$parse',function($parse){
        return {
            link: function(scope,element,attr){
                var exprFn = $parse(attr.jqmBlur);
                element.bind('blur',function(e){
                    scope.$apply(function(){
                        exprFn(scope,{$element:element,$event:e});
                    });
                });
            }
        };
    }])

aztack avatar May 20 '13 10:05 aztack