angularjs-slider icon indicating copy to clipboard operation
angularjs-slider copied to clipboard

rz-slider-update workaround

Open simonaberry opened this issue 12 years ago • 2 comments

Firstly thanks for a great solution!

I have been using an older verison that had the rz-slider-update callback. I see this has been culled in the last few versions.

What is the proposed workaround for running a function on value change. I am using the slider inside a ng-repeat, so a $watch or a event is not optimal....

Thanks

simonaberry avatar Aug 09 '14 17:08 simonaberry

There is a $emit for slideEnded, which you can listen for: $scope.$on('slideEnded', function() { ... } Maybe this helps

GGrossberger avatar Aug 28 '14 15:08 GGrossberger

Thanks for the suggestion which I had tried, but I needed an update AS the slider moves, not just at the end.

I ended up just adding the source code for the callback from an earlier version as a workaround.

simonaberry avatar Aug 28 '14 19:08 simonaberry