-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tour multi page #129
Comments
Hey Bruno, There are a couple things that might cause this issue. The first is that you are navigating from one tour to another (from the "help" tour to the "welcome" tour). I haven't tried this, so I don't know if it works or not. The other thing is that the "welcome" tour is defined on page 2, so it's possible that the tour is not yet defined when you try to get a reference to it. I generally recommend only using a single tour, but if you have to use multiple tours then they really shouldn't interact. -Ben |
hey Ben yes i understood that so now i place a single ui-tour on an it works better. . i don t know if it works like that, but is it possible to use .waitfor() with a url to show sub screen of the step ? . how to reference _getSteps() in the popover template (template-url) html ? is there a global instance of uiTourService ? ($scope ? ; $ctrl ?) thx |
You can only use waitFor with a step, but you can navigate using any library (as long as it doesn't do a full browser reload). Basically, waitFor doesn't care what you do when you wait, it just sets up a listener that resumes the tour when the specified step is found. You can reference |
last question,, waitFor() finally is not adapted to my case, i think i d better catch the stepChanged notification but how ( both failed) ? i tried |
So the events are a little different from the lifecycle hooks. You would use the //somewhere in your controller
tour.on('stepChanged', () => ...);
//later, be sure to turn it off!
tour.off('stepChanged'[,optionalReferenceToFunction]) More information here: https://github.com/benmarch/angular-ui-tour#tour-notifications This is the EventEmitter documentation (the tour itself is an event emitter): https://github.com/benmarch/ez-ng#module_ezNg.ezEventEmitter..EventEmitter |
Hey @brusand, any updates? |
Not able to get the multi-page tours to be working with angular-ui-tour version 0.8.2. As specified in the documentation, added api to navigate to new page and add waitfor(). Page 1: Page 1 ctrl: Page 2: Following is sequence of events seen on pressing next in Page 1 tour popup
But the tour step in page 2 is getting added but not shown. Not sure if I have missed something. Any pointers are appreciated. Are there any sample which I can refer to? |
Found the root cause It was due to enabling navigation interceptors and step placement |
hi Ben
i have some issue with multi pages.
I am using the exact versions of the following:
Browser: [Chome|Firefox|IE|Safari] Version 58.0.3029.110 (64-bit)
AngularJS: "angular": "1.5.5"
Angular Bootstrap:" angular-ui-bootstrap": "1.3.3"
Angular UI Tour: "angular-ui-tour": "^0.8.1",
I have installed this library via: (NPM, Bower, or downloaded package)
npm
I have observed the following behavior:
this.$state.go(path);
return this.welcome.waitFor(stepId); => error : no step
This is how I expected it to behave:
the new page with the step viewed
Here is my tour config, and all related step configs:
The text was updated successfully, but these errors were encountered: