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

associated ng-model is not updated as we drag the range #125

Closed pliablepixels closed 8 years ago

pliablepixels commented 8 years ago

Hi, I am using the following code in my slider:

<div style="width:90%">
    <input ng-model="ionRange.index" type="text" id="mySlider1" slider options="slider_options" realtime:true />
</div>

The problem I am facing is "ionRange.index" (ng-model) value is not being updated as I slide the slider. It only gets updated after I finish sliding. How do I make sure ng-model gets updated in real time?

thx

darul75 commented 8 years ago

Hi, just put 'realtime' options object attribute to true

darul75 commented 8 years ago

You slider_options must be an json object as:

{from:...,to,....,realtime:true}

pliablepixels commented 8 years ago

ah perfect. Thank you. I had put the realtime into the html!

darul75 commented 8 years ago

yes no pb, nice if it works fine