angular - 无法绑定到“行”,因为它不是“ngx-datatable”的已知属性
问题描述
我点击了这个链接,但是无论我在哪里添加 NgxDatatableModule,我都得到了这个。
以下是我已经尝试过的标准。
添加到app.module.ts
不工作
然后添加到shared.module
不起作用
然后page.module
没有工作
所有的时间只是得到
Can't bind to 'rows' since it isn't a known property of 'ngx-datatable'.
有趣的部分是之前ngx-datatable
,我安装ngx-bootstrap
了 ngx-bootstrap 属性时发生了同样的错误。
解决方案
可能需要模板引用变量,所以尝试定义数据表的实例
@ViewChild('firstTable') myTable: DatatableComponent;
推荐阅读
- ionic-framework - Ionic 4:如何更改 Onesignal 中的小图标
- python - 帕斯卡三角程序显示错误的输出
- powershell - 如何在 Powershell 中添加持续时间?
- e-commerce - Google 搜索结果未正确显示我的产品价格
- mongodb - Mongo geoNear 聚合管道 - 'near' 字段必须是点
- python - 如何从文件中删除 Form Feed
- printing - 如何获取默认的重定向打印机
- rest - 如何将 Sabre 预订 SOAP API 集成到 React Native 中
- jenkins - 手动删除作业后作业卡住
- python - 我如何从字典中读取,无论字典中的输入是什么,它都会被一个名为 total 的变量相乘?