Tour Step Anchor Not Recognized in Lazy-Loaded Modules with ngx-ui-tour v8 #209
-
I'm using Angular 13 with ngx-ui-tour version 8 in a project that utilizes lazy-loaded modules. I've registered the TourService in my CoreModule providers, and I import TourMatMenuModule in each lazy-loaded module where I use anchors. When I attempt to initialize and start the tour from a component within a lazy-loaded module, the route navigation to the first step works correctly, but the anchor is not recognized, resulting in the step not being displayed. I wonder if there's an approach to handling this case when using lazy-loaded modules. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are not supposed to add |
Beta Was this translation helpful? Give feedback.
You are not supposed to add
TourService
to your providers. You should useTourMatMenuModule.forRoot()
to initialize the service as global.See the old "lazy tour" demo project for more info.