Closed abhipanda closed 7 years ago
Something like this should work:
const tour = uiTourService.createDetachedTour('myTour', tourOptions);
tour.createStep({
stepId: 'firstStep',
onNext: function () {
$state.go('nextState');
return tour.waitFor('secondStep');
}
});
tour.createStep({
stepId: 'secondStep',
onPrev: function () {
$state.go('prevState');
return tour.waitFor('firstStep');
}
});
Awesome ! It works thanks.
How to implement navigateToAndWaitFor with a detached tour, trying to navigate to another page using uiRouter
I don't use any HTML directives