I have directive with input
<input ng-model="inputModel" ng-disabled="ngDisabled || isLoading" value="{{value}}" type="{{type}}" placeholder="{{placeholder | translate}}">
I use this directive like this:
<input-ext type="'text'" name="email" ng-model="registerCtrl.email" ng-blur="registerCtrl.test()" required></input-ext>
I want to after blur inside my directive to executed blur in input-ext ... , for this example code in controller, how to make this ?
On your link function you bind them
link: function (scope, element, attrs) {
element.bind('blur', function (e) {
//do something
});
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With