isaacplmann / ngx-tour

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

Cannot set properties of undefined (setting 'step') #282

Closed prshantsharma closed 1 year ago

prshantsharma commented 1 year ago

Hi, I'm getting an error in browser console when I start the TourService. Below is my code:

tourSteps: IStepOption[] = [ { anchorId: 'welcome', content: 'Lorem ipsum dolor.', title: 'Welcome', }, ];

In ngOnInit, I put this below line of code: this.tourService.initialize(this.tourSteps);

I created a function to start the TourService as below: startTour() { this.tourService.start(); }

In my HTML, I put this below code: <div tourAnchor="welcome"></div>

Also, I pasted <tour-step-template></tour-step-template> in app.component.html as you suggested already in the documentation.

What I'm doing wrong here. Please assist.