Cannot set properties of undefined (setting 'step')
prshantsharma opened this issue · comments
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.