javascript - carousel previous doesn't work with angular -
i'm new angular , javascript.
i'm trying create carousel. looks correct , next button works fine , scroll first item well. however, prev button doesn't work. when click it, destroy carousel. when click again, seems next button on left instead of right , screwed up. idea?
<div id="mycarousel" class="carousel slide"> <!-- carousel items --> <div class="carousel-inner"> <div class="item" ng-repeat="example in examples" ng-class="{active : $first}"> <div class="span12"> <img ng-src="{{example.image}}"> </div> <div class="text-center"> <h4>{{example.title}}</h4> </div> <div class="text-center"><small>{{example.clientsuccess}}</small></div> </div> </div> <a class="carousel-control left " href="#mycarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#mycarousel" data-slide="next">›</a> </div>
Comments
Post a Comment