Slide-box pager not clickable


#1

Hi. I am confused about making use of the slide-box pager. I am under the impression from reading the documentation that the dots should be clickable to go to a slide. I want this behavior, but I can’t seem to get it working. What am I missing?

See the Pen Ionic: slide-box pager issue by Tyler J. Peckenpaugh (@moui72) on CodePen.


#2

It works if you add the active-slide and pager-click attributes.


#3

Hi Moui,

html file

<ion-slide-box active-slide="0" pager-click="slide(index)" does-continue="true">
<ion-slide ng-repeat="category in categories">
</ion-slide>

controller.js:

  $scope.slide = function(index) {
    $ionicSlideBoxDelegate.slide(index);
  };

Cheers.