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">&lsaquo;</a>               <a class="carousel-control right" href="#mycarousel" data-slide="next">&rsaquo;</a>             </div> 


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -