stories2 / Angular-Onboarding

Onboarding library for angular 7
https://www.npmjs.com/package/story-onboarding
MIT License
1 stars 0 forks source link

At Done not closing #1

Open mino89 opened 4 years ago

mino89 commented 4 years ago

i have implemented the plugin like this

...
export class DashPageService {
    public dashPage = new BehaviorSubject<boolean>(false);
    get isDashPage() {
        return this.dashPage.asObservable();
    }
    constructor() {}
}

@Component({
  selector: 'dashsplash-component',
  templateUrl: './dashsplash.component.html',
})
export class DashSplashComponent {
  constructor(
    private route: Router,
    private dashPageService: DashPageService
  ) {
    this.dashPageService.dashPage.next(true);
  }

  storyBoard = [
    {
      id: 'warehouse',
      text: 'This is wellcome',
      direction: 'bottom'
    },

  ] as StoryOnboardingModel[];

  endOfTutorial(event) {
    console.log(event);
  }

}
<Ng7-Onboarding  [story]="storyBoard" [gap]='20' (done)="endOfTutorial($event)"></Ng7-Onboarding>

but when I click on 'done' nothing is happening

stories2 commented 4 years ago

First this project was make for my study so, it will not work stably. Sry bro. If you clicked done. It should call endOfTutorial func. If not try add more story item to storyBoard array.