tnicola / ngx-joyride

Angular Joyride/Tour library
https://tnicola.github.io/ngx-joyride/
MIT License
245 stars 97 forks source link

Accessing child elements #411

Open dolanmiu opened 3 years ago

dolanmiu commented 3 years ago

It is not possible to add joyRide in child or nested components.

For example, if I have a page, Joyride works fine, but it cannot see the child components. E.g. The Nav Bar

Similar Ticket

https://github.com/tnicola/ngx-joyride/issues/61

CodeMagic commented 3 years ago

If you need a joyride step added to a component template you've written, it can be done. I don't know if it's strictly best practice, but here you go: https://stackblitz.com/edit/angular-ivy-hwqnb7?file=src/app/app.component.html

I got this working with three main parts:

If you need a joyride step added to a 3rd party component template... I got nothing.