DaftMonk / angular-tour

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

Switching URL and continue the tour #32

Open suriyagp opened 9 years ago

suriyagp commented 9 years ago

In my app i am having different html files, i want to make the tour flow on those pages that is /path1 to /path2 at the same time need to maintain the flow.

Is this is possible with angular-tour? if possible means explain that with simple example.

yhnavein commented 9 years ago

Check out my PR: #28

I've done some changes to angular-tour to allow that kind of scenario. My application has a flow of 3 different tutorials on different pages.

What you have to implement is a persistent tutorial progress (cookie or whatever) with number of last watched tutorial. I assigned numbers to each of the tours: (1, 2, 3), and when you complete one tour, this tutorial progress increases.

On the other hand on every page where tour is available it is starting only when numbers match (tour index and tutorial progress).

This functionality is quite easy to implement and it's not part of the PR :)