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

Call open Tour programmatically #86

Open mariohmol opened 7 years ago

mariohmol commented 7 years ago

Hey. awesome module!!

I'm using this tour and i would like to have like help icons in section name where if the user clicks it open the tour in that step.

I tryed to make like ng-click="tourStep=1" , it works when click once.. if click it twice it does not open again. If i have to icons, one changing to step1 and other to step2 it works, but when click in same step cliked before, it does not open.

Is there a way to call openTour() programmatically? (inside the controller)?

bests

Steve-Mc commented 7 years ago

You can use shepherd.activeTour.show('stepIdHere') after starting the tour.