We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By following this guide I'm trying to call my function when the user finishes the tutorial but got Object is possibly 'undefined'. error
Object is possibly 'undefined'.
The text was updated successfully, but these errors were encountered:
Got the same error. Angular 12.0.3
Sorry, something went wrong.
Solution found by going to tsconfig.json and setting strict: false
tsconfig.json
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(); }
No branches or pull requests
By following this guide I'm trying to call my function when the user finishes the tutorial but got
Object is possibly 'undefined'.
errorThe text was updated successfully, but these errors were encountered: