Initializing the box slider to a given index


I’m trying to use the ionic box slider in one my app’s settings page. Everything is working fine except I want to set the starting slide to the chosen option.

$scope.initIconSlider = function() {
    $ionicSlideBoxDelegate.slide($scope.noteBook.icon, 0);

I want to the set the starting index to the value of $scope.noteBook.icon
Any thoughts on how I can do that?

Are you trying to go to a certain slide when you tap a link?

Or are you just trying to set a certain slide as the active one?
Ion-slide-box has an attribute, active-slide where you can set a certain slide to be the first slide

1 Like

Thanks! Ionic is absolutely awesome :smiley: