How to handle range slider drag events?


#1

Hi.

I’m using a range slider: http://ionicframework.com/docs/components/#range, and I want to handle slider drag events. When testing in the browser (either Chrome or Safari), I figured I can use ng-mousedown and ng-mouseup directives, but they won’t work on mobile.

I then tested native HTML5 ondrag events and it did work, but Angular don’t handle them natively. Are there easier solutions to get slider drag events than to do some custom directives, or something of the kind?

Thanks!


#2

you can add ngChange to get notified when ever the connected ngModel changes