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
Getting this error when i tried to get event from onDialogOpen function.
ERROR TypeError: "this.widgetComponent.widget is undefined"
My sample code: import { UcWidgetComponent } from '../../../../../node_modules/ngx-uploadcare-widget/release/ucWidget/ucWidget.component';
@ViewChildren(UcWidgetComponent) private widgetComponent: QueryList;
uploadLimit() { (this.widgetComponent as any).widget.onDialogOpen( di => { console.log(di); }); }
versions I'm using: "uploadcare-widget": "^3.6.0", "@angular/core": "^6.1.10", "typescript": "~2.9.2"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Getting this error when i tried to get event from onDialogOpen function.
ERROR TypeError: "this.widgetComponent.widget is undefined"
My sample code:
import { UcWidgetComponent } from '../../../../../node_modules/ngx-uploadcare-widget/release/ucWidget/ucWidget.component';
@ViewChildren(UcWidgetComponent) private widgetComponent: QueryList;
uploadLimit() {
(this.widgetComponent as any).widget.onDialogOpen( di => {
console.log(di);
});
}
versions I'm using:
"uploadcare-widget": "^3.6.0",
"@angular/core": "^6.1.10",
"typescript": "~2.9.2"
The text was updated successfully, but these errors were encountered: