Button to change slidebox index

I just found the answer on this forum:

For future reference, I used this line to set the slide number:

$scope.$broadcast('slideBox.setSlide', 0);