In AngularJS, I can use the ng-focus directive to know when I have the focus of an input field, but what about when I lose the focus?
Is there any directive for that?
The opposite of the focus
event is the blur
event. It's fired when an element loses its focus. So what you are looking for is the ngBlur
directive.
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