tnicola / ngx-joyride

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

Steps cannot find route in angular #21

Closed macangular closed 5 years ago

macangular commented 5 years ago

I'm trying to route the steps through multiple components in angular 6 that has multiple routers but when I'm trying to route to it i keep getting this error no matter what i do.

ERROR TypeError: Cannot read property 'targetViewContainer' of undefined

Joyride cant find where the next step is because its under the same route tag but different component

macangular commented 5 years ago

I figured out the problem you need to put JoyrideModule.forChild() in every module

tnicola commented 5 years ago

Good you've found the problem!I'll try to return better errors.