Matteo Scandolo | 7cd88ba | 2015-12-16 14:23:08 -0800 | [diff] [blame^] | 1 | <div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()"> |
| 2 | <div class="carousel-inner" ng-transclude></div> |
| 3 | <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"> |
| 4 | <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span> |
| 5 | <span class="sr-only">previous</span> |
| 6 | </a> |
| 7 | <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"> |
| 8 | <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span> |
| 9 | <span class="sr-only">next</span> |
| 10 | </a> |
| 11 | <ol class="carousel-indicators" ng-show="slides.length > 1"> |
| 12 | <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)"> |
| 13 | <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span> |
| 14 | </li> |
| 15 | </ol> |
| 16 | </div> |