Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Steps not working when they are inside directives with templateUrl #8

Closed
Urigo opened this issue Feb 26, 2014 · 2 comments
Closed

Steps not working when they are inside directives with templateUrl #8

Urigo opened this issue Feb 26, 2014 · 2 comments
Labels

Comments

@Urigo
Copy link

Urigo commented Feb 26, 2014

Here is a plunker:
http://plnkr.co/edit/Hp6XGMvcchqDoU1GtZ4D?p=preview

@mendhak
Copy link
Owner

mendhak commented Feb 26, 2014

Not sure why document.querySelector isn't working for that first step, but removing it and just calling 'step1' works:

http://plnkr.co/edit/FdHGcK8ZICyppmAoaoxj?p=preview

@millerscout
Copy link
Collaborator

to complement @mendhak 's answer document.querySelector will be evaluated while the template wasn't loaded resulting in a null DOM.

when you're using '#step1' and introjs starts it'll evaluate the query selector, that's why it works.

i'll close this issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants