prajwalkman / angular-slider

(DEPRECATED) Slider directive implementation for AngularJS, without jQuery dependencies
http://prajwalkman.github.io/angular-slider
MIT License
249 stars 177 forks source link

ng-repeat is breaking the slider #43

Open calekennedy opened 10 years ago

calekennedy commented 10 years ago

I tried to mimic your usage and have had no success. Whenever i use ng-repeat, the slider stops displaying properly even though it is receiving the values.

This is a link to the use case that's breaking the slider.

http://plnkr.co/edit/1JNX2vCsotYwGAxEUZU0?p=preview

crabmusket commented 10 years ago

See #12. I'm using the workaround here: put your slider in a template and ng-include it.

calekennedy commented 10 years ago

You're completely right. That template fixes it, even for ranges. http://plnkr.co/edit/Og6SRl6RpBC2yNyZsuxe. Thanks for the help @eightyeight, this will get my project back on track.