darul75 / angular-awesome-slider

:arrows_clockwise: Angular slider control directive
http://darul75.github.io/angular-awesome-slider/
MIT License
143 stars 63 forks source link

programmatic control of "to" end value parameter? #133

Closed ghost closed 8 years ago

ghost commented 8 years ago

hi, is it possible to dynamically change the "to" parameter from code? so either the slider would automatically recompute the grab positions or the developer would call some function to do so. thanks

darul75 commented 8 years ago

have you tried to update your scope options 'to' attribute from code

$scope.options.to = 12; // your value
ghost commented 8 years ago

amazingly i hadnt tried that, works fine, thank you!

darul75 commented 8 years ago

good dude