export class ChildMessageRenderer implements ICellRendererAngularComp {
public params: any;
@ViewChild(SecComponent, { static: false }) accComponent: SecComponent;
agInit(params: any): void {
this.params = params;
}
public loadRequestsHistory() {
this.params.context.AccountBatchAuditComponent.loadRequestsHistory('36');
}
}
我正在尝试从 ChildMessageRenderer 调用 SecComponent 的方法。@ViewChild 在控制台中出现错误。有人可以帮助解决这个问题吗?