I'm using Bootstrap carousel for some dynamically created slides that have different slide duration. I used THIS and it works fine. What I want to achieve is that when the first slide is displayed, the background is different.
Here's a JSFiddle. I was unable to make the slideshow work on the fiddle, but the code is basically the same as the one I'm using in my project, so I'm probably missing/failing a resource. I would like the background change based on ng-class="timer[$index].def == 1 ? 'defaultbackground' : 'slidebackground'"
or possibly on slideCollection[$index].def == 1 ? 'defaultbackground' : 'slidebackground'"
, but in the latter I realize the ng-class
is outside the iteration.
I spent a few days on this trying everything that passed my mind... any idea on how to make it work? I guess it's a piece of cake in the end.