javascript - angular carousel indicator not working -


i using angular-carousel display set of images in carousel. carousel working fine except indicator.the indicator not getting displayed. following code carouse.

  <ul rn-carousel rn-carousel-pause-on-hover="" rn-carousel-auto-slide="" class="image" ng-init="images = ['assets/img/1.png','assets/img/2.png','assets/img/3.png']">     <li ng-repeat="image in images"><img src="{{image}}"/></li>   </ul> 

the following div display indicator.

<div rn-carousel-indicators ng-if="images.length > 1" slides="images" rn-carousel-index="carouselindex"></div> 

can suggest how indicator working. enter image description here

you need bind carouselindex carousel directive:

<ul rn-carousel rn-carousel-pause-on-hover="" rn-carousel-auto-slide="" rn-carousel-index="carouselindex" class="image" ng-init="images = ['assets/img/1.png','assets/img/2.png','assets/img/3.png']"> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -