The issue is with ion-wizard-previous, ion-wizard-previous directives.
$scope.$parent.$broadcast('slideBox.slideChanged', slideIndex);
scope.$on("slideBox.slideChanged", function(e, index) {
isn't getting fired.
i solved it in the meanwhile until i'll have an understanding on what goes wrong here.
Here's how I solved it:
app.controller('myCtrl', ['$scope',
function($scope) {
var vm = this;
// fix to prev next buttons
var last_slide = 0;
vm.slideHasChanged = function(index){
var length = $('ion-slide').length;
if (index == 0 || last_slide==0) {
$('[ion-wizard-previous]').toggleClass('ng-hide');
}
if (index == length-1 || (index == length-2 && last_slide==length-1)){
$('[ion-wizard-next]').toggleClass('ng-hide');
}
last_slide = index;
};
<ion-slide-box ion-wizard on-slide-changed="vm.slideHasChanged($index)">