$ionicSlideBoxDelegate
is deprecated, since it was only used for controlling ion-slide-box
.
With ion-slides
it works a bit different. You need to use $scope.$watch
to get the slider object, then you have full access to its api (see here):
$scope.$watch("slider", function(slider){
if (slider){
// save it to a local variable, e.g.:
ctrl.slider = slider;
}
});
Then do whatever you want, in your case:var newIndex = ctrl.slider.activeIndex