darul75 / angular-awesome-slider

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

step not working for decimal values #55

Closed medaamarnadh closed 9 years ago

medaamarnadh commented 9 years ago

Hi,

I want a slider with fallowing options

from :0, to:1, step:0.5 When i am trying to give above options slider working with 3 points that is fine. But the values which is shows on the points either 0 or 1 but not 0.5 at the time middle level point . Same thing happening in the callback also

darul75 commented 9 years ago

hi @medaamarnadh

just add option attribute "round" like that:

{
"from": 1,
"to": 100,
"step":0.5,
"round": 2
....
}