Our pure JavaScript Scheduler component


Post by liuxiang »

---------------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);
	}
}

Image
Image
Unable to get "gridComponent.instance"


Post by saki »

The code you posted does not indicate any possible error. Can you please post a runnable showcase for us to run/analyze/debug?


Post by liuxiang »

Thanks.
I've solved it


Post by tasnim »

Glad to hear that you've figured it out.


Post Reply