---------------app.component.ts---------------------
export class AppComponent implements AfterViewInit {
@ViewChild(BryntumSchedulerProComponent, { static: true }) schedulerProComponent: BryntumSchedulerProComponent;
@ViewChild(BryntumGridComponent, { static: true }) gridComponent: BryntumGridComponent;
ngAfterViewInit(): void {
this.schedulerPro = this.schedulerProComponent.instance;
this.grid = this.gridComponent.instance;
console.log(this.grid); //output undefined
console.log(this.gridComponent);
}
}
Unable to get "gridComponent.instance"