benmarch / angular-ui-tour

Product tour using Angular UI Bootstrap Tooltips
163 stars 49 forks source link

No Step #166

Closed wiemKh closed 6 years ago

wiemKh commented 6 years ago

hi i'm new in angularjs i want to integrate angular ui tour in my application , it worked fine but when i open my application the tour always shows so i want only when the user click on link the tour start
this is my link

 <a ui-tour ng-controller="MyTourCtrl"   ui-tour-template-url="'views/tour-step-template.html'"  ng-click="tour.startAt('adviceList')>
               demo </a>  

and in other view i have

<div ng-controller="MyTourCtrl" ui-tour ui-tour-on-ready="tour.start()" ui-tour-template-url="'views/tour-step-template.html'">
                          <div tour-step="'adviceList"  tour-step-title=""  tour-step-content=""
                      tour-step-order="1" tour-step-placement="left" tour-step-on-next="navigateToAndwaitFor(tour, 'adviceList', 'adviceList')></div>
                                        </div>

but when i click the link i got error No step.

benmarch commented 6 years ago

Hey @wiemKh, this could be caused by a number of issues, but it isn't an issue with this module. Try these, if they don't work, please look through the README and closed issues:

wiemKh commented 6 years ago

thank you a lot ben , it worked now :) but i still have a problem that ( i dont know how to explain it lol ) for exemple in view 1 i have step 1 with content hello in view 2 i have step2 with content hello2 when the user is in view 2 and then click button back of navigateur to be back to view 1 . image

in view 1 we have hello and hello 2 (both) i want hello 2 be only on view 2 how i can do that? i hope you undrestand me