【发布时间】:2019-07-11 16:56:28
【问题描述】:
我在需要构建一些表格模板来显示员工信息的项目中工作,并且协调员选择了其中一名员工来做某事我在来自 AgGridModule 的称为 API 的东西中遇到了一些问题,但是当我尝试选择行时它可以在控制台日志中显示。 但我面临一个问题:
StoreComponent.html:2 ERROR TypeError: Cannot read property 'api' of undefined 在 StoreComponent.push../src/app/Component/store/store.component.ts.StoreComponent.getSelectedRows
谁能帮我解决一下
这是我的代码:- https://stackblitz.com/edit/angular-yfdcbn?file=src%2Fstyles.css
【问题讨论】:
-
你好。检查我的答案 - 它一定对你有帮助!