Open sultanmyrza opened 2 years ago
Got the same error. Angular 12.0.3
Solution found by going to tsconfig.json
and setting strict: false
A better way to solve this would be to subscribe to the event in the component class in the ngAfterViewInit() lifecycle hook:
@ViewChild(JoyrideDirective) joyride: JoyrideDirective;
sub: Subscription;
ngAfterViewInit() {
this.sub = this.joyride.done!.subscribe(_ => captureWithCustomCamera());
}
ngOnDestroy() {
this.sub.unsubscribe();
}
By following this guide I'm trying to call my function when the user finishes the tutorial but got
Object is possibly 'undefined'.
error