Is there a way to prevent the slide feature from activating upon startup while still allowing me to set my own active page?
I've discovered this helpful snippet in HTML
<ion-slide-box active-page="disableSlide()">
<ion-slide>Slide 1</ion-slide>
<ion-slide ng-click="previous()">Slide 2</ion-slide>
<ion-slide>Slide 3</ion-slide>
</ion-slide-box>
In JavaScript,
$scope.disableSlide = function(){
$ionicSlideBoxDelegate.enableSlide(false);
return 1;
}
$scope.previous = function(){
$ionicSlideBoxDelegate.previous();
}
However, I encounter an error when clicking previous
Error: [$compile:nonassign] Expression 'disableSlide()' used with directive 'ionSlideBox' is non-assignable!
You can view the demo here.
I would appreciate any assistance, thank you.