You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a parent component using a modal, ngTemplate and a child component called createComponent): @ViewChild(CreateComponent, { static: false }) createComponent: CreateComponent | undefined; ... ngAfterViewInit(): void { console.log(this.createComponent?.unit); // createComponent is always UNDEFINED }
It is the same issue without solutions than this alert since 5 years:
In a parent component using a modal, ngTemplate and a child component called createComponent):
@ViewChild(CreateComponent, { static: false }) createComponent: CreateComponent | undefined; ... ngAfterViewInit(): void { console.log(this.createComponent?.unit); // createComponent is always UNDEFINED }
It is the same issue without solutions than this alert since 5 years:
https://stackoverflow.com/questions/51959167/angula6-viewchild-in-ng-bootstrap-ng-bootstrap-ngbmodalmodule-modal-returns-und
The text was updated successfully, but these errors were encountered: