angular-rangeslider
angular-rangeslider copied to clipboard
Handle up/down events not working
I'm using the following slider definition
<div range-slider
step='6'
onHandleUp='handleUp'
onHandleDown='handleDown'
min="sliderAge.min"
max="sliderAge.max"
model-max="sliderAge.maxModel"
model-min="sliderAge.minModel"
></div>
while in my controller, I've got the following two functions:
$scope.handleUp = function() {
console.log("Handle up");
}
$scope.handleDown = function() {
console.log("Handle down");
}
Unfortuanately I can't see "Handle up" nor "Handle down". Could anybody elaborate ? Also, the documentation needs to be updated to reflect the onHandleUp/down usage (i'm not sure if I am using it right!)
were you able to solve this issue?
You need to change your div:
@tharrington thanks for the help, it works when I change it as you propose.
Please put this in the documentation/README to help other people - getting notifications when the slider is updated is really mandatory (or else you'll need to use dreadfull watch statements :-1: )