DaftMonk / angular-tour

AngularJS directive for giving an interactive tour of your website.
http://daftmonk.github.io/angular-tour/
MIT License
608 stars 137 forks source link

openTour not working #91

Open leonardbh opened 7 years ago

leonardbh commented 7 years ago

Doesn't seem like openTour is properly invoking start of Tour, if I manually set currentStep using my own function (i.e. startTour) it's fine.

https://jsfiddle.net/auricomx/rfffmd85

leonardbh commented 7 years ago

Also noticed, if I use a custom function (startTour) to begin tour, if you exit tour via "X" instead of actual "next-step" button, it will not being Tour properly if you set $scope.currentStep=0 via startTour method (or any other).

kotpal commented 6 years ago

Even on the main/demo site, http://daftmonk.github.io/angular-tour, the 'Open tour' does nothing

stefanosalvucci commented 3 years ago

Doesn't seem like openTour is properly invoking start of Tour, if I manually set currentStep using my own function (i.e. startTour) it's fine.

https://jsfiddle.net/auricomx/rfffmd85

your function name that you want to invoke from the button (openTour) is different from the real function name (startTour)