Open mg1075 opened 10 years ago
I agree that it would be cool to have this feature. I created a more general issue #23 before seeing this one.
Just in case all you need is a way to track ONE event (in your case, change
), you can do this:
<div slider ng-model="test.single" start=1 end=10 callback='change'></div>
and set up a scope.$watch on test.single
scope.$watch('test.single', actionAfterChange)
Once the
change
event happens, I need a way to call a custom function.Therefore, I think it would be beneficial to add another item to the isolated scope of the directive that gives a hook for the change event of uinoslider.
http://refreshless.com/nouislider/events-callbacks#change
actionAfterChange: '&'
...
Then call
myCustomAction
in controller.