Is it possible to dynamically add steps so that IntroJS can find the element after a route change ?
Basically when a certain step is loaded, I am routing to another page
this.introJs.onbeforechange((obj) => {
if (this.introJs._currentStep === 0) {
setTimeout(() => {
this.router.navigate(['', { outlets: { popup: ['user'] } }]);
}, 0);
}
Is it at all possible to get a workaround so that, for example, in onChange
or something similar I can then add a new step there, so that IntroJS can find the element ?
Naturally, I can't set up all steps initially, because it won't find the elements on the new route - has anyone come up with a solution for a seamless usage of IntroJS tour ?
I did try the this.introJs.addStep({})
function but that still executes on load so it's still too early to pick up the element in the DOM ?
thanks