Skip to content
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

How do I added a tour anchor dynamically? #50

Closed
ghost opened this issue Sep 20, 2017 · 3 comments
Closed

How do I added a tour anchor dynamically? #50

ghost opened this issue Sep 20, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2017

No description provided.

@isaacplmann
Copy link
Owner

You can add a tour step dynamically, but I can't think of a good way to add a tour anchor dynamically. What is your reason for wanting to do that?

@ghost
Copy link
Author

ghost commented Sep 20, 2017

For routing. I pass parameters to the URL, however these parameters arent defined yet on initialize. Should I pass the parameters into my steps array, and then reinitialize?

@isaacplmann
Copy link
Owner

Yes, if you don't know what your anchors will be until runtime, you'll want to update the tour steps once you know what anchor names are. There is probably a way to dynamically attach a directive to a component at runtime, but it will be a lot more complicated than updating the POJO steps.

@ghost ghost closed this as completed Sep 20, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant