1.0.0 • Published 9 years ago
angular-blur-changed v1.0.0
angular-blur-changed
Angular directive that fires an event on blur and changed.
This is a simple directive that will trigger a function when an input element is blurred AND the value has changed.
Why was this created?
The blur event always triggers an event but most of the time you only want to be notified when the actual value has changed.
Usage:
Include the blur-changed-directive as a dependency for your app.
angular.module('myApp', ['purplefox.blurchanged'])
Use the directive in your view:
<input blur-changed="myCallback" />
Set a callback method in your controller:
function myCallback(value) { console.log("Value changed " + value) }
1.0.0
9 years ago