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

Only obtaining an input field instead of a slider #46

Closed commaander closed 9 years ago

commaander commented 9 years ago

Hey there,

when integrating a slider into my code, it works perfectly fine. However, when I add another slider to my code (doesn't matter whether it's the same slider again or not) it only shows an input text field instead of my slider. What's the problem here?

darul75 commented 9 years ago

hi @commaander can you look at this example https://github.com/darul75/ng-slider/blob/master/src/ng-slider.html and see if you have missed something or if bug we have ;) do not hesitate to send some js and/or html code I will help you

commaander commented 9 years ago

Hi @darul75 , thanks for your quick response. I do not see the difference to my code. But I just could narrow down the problem: If I use the same slider again (or a different slider in the code) and just add another line, the second slider just shows an input field. It seems that only one slider works at a time.

commaander commented 9 years ago

Hi @darul75, just solved it. It seems, that I used the same scope twice (or I used the same option name twice). Thanks for your help, your code example has been very useful.

darul75 commented 9 years ago

well I was implementing one example here :)

http://jsfiddle.net/darul75/g9e9n8xc/

darul75 commented 9 years ago

if you can add a star to this library for xmax in the meantime sky will be happy having it !