AngularJS UI Bootstrap Carousel go to slide?
17,121
Sure. Each slide can have a bindable active
property. You can use it to mark any slide as active. Here is an example in a plunk: http://plnkr.co/edit/hvfaMFz4q1AlbOpuOwFv?p=preview
Author by
Lucius
Updated on June 14, 2022Comments
-
Lucius almost 2 years
I'm new to this AngularJS thing, and I want to create a carousel with Angular UI Bootstrap. Is it possible to go to a specific slide by clicking an button?
http://plnkr.co/edit/X0Mr1sPUr5Je0tfkzgjy
Many thanks!
-
Lucius almost 11 yearsi thought i needed to set that property of the currently active slide to false, and this created a flicker. This solution is simple, thank you very much
-
anam over 9 years@pkozlowski.opensource i checked in plunker , passing array no. 3 gives error ,its not working plnkr.co/edit/F8ixwSIWsgbqLs7WCVuf?p=preview
-
Jhourlad Estrella over 8 yearsThis doesn't seem to work if slides are static. Controller throws "$scope.slide is undefined"