isaacplmann / ngx-tour

Product Tour Built in Angular
https://isaacplmann.github.io/ngx-tour
MIT License
246 stars 100 forks source link

Skip a step when the anchorId is undefined #253

Closed SamashaNayananthi closed 3 years ago

SamashaNayananthi commented 3 years ago

Hi,

I have noticed in the stepShow$ method when there isn't an anchor defined the process gets exit. Is that possible to skip a step to the next step when there isn't an anchor is defined?

Thanks

hakimio commented 3 years ago

First of all, as clearly stated in the README this library is not maintained anymore and all feature requests and bug reports should be opened in ngx-ui-tour repository.

Anyway, to answer your question: no, all steps should have valid anchor id. If you want some steps to be skipped, don't include them when initializing the tour. If the state of the app changes, you can reinitialize the tour whenever needed.

Similar old issues: https://github.com/isaacplmann/ngx-tour/issues/70 https://github.com/isaacplmann/ngx-tour/issues/107

hakimio commented 3 years ago

@SamashaNayananthi I have added this feature to the latest version of ngx-ui-tour I maintain.