danielcrisp / angular-rangeslider

Simple directive that creates a range slider for Angular, styled to match Bootstrap-styled form elements
danielcrisp.github.io/angular-rangeslider/
MIT License
223 stars 122 forks source link

Call a function when the slider values have changed #62

Closed 360disrupt closed 9 years ago

360disrupt commented 9 years ago

Usually range sliders are used to filter. But I can't determine when the slider values have changed.

ng-changeseems not to work and

$scope.min = 0
$scope.max = 10
$scope.$watch 'min', () -> console.log "hh"

Does also not work for me.

360disrupt commented 9 years ago

Ok seemed to be related to that I packed it into ng-if which creates a child scope. But still this would be a cool feature to have ng-change here.