700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > NG-ZORRO Angular ui Nz-table Property ‘xxxxxxx‘ does not exist on type ‘NzTableComponent<any>

NG-ZORRO Angular ui Nz-table Property ‘xxxxxxx‘ does not exist on type ‘NzTableComponent<any>

时间:2019-07-16 22:35:48

相关推荐

NG-ZORRO Angular ui Nz-table Property ‘xxxxxxx‘ does not exist on type ‘NzTableComponent<any>

代码copy自官网 nz-table分页部分,分页研究了好久 踩了个坑

<tr *ngFor="let data of rowSelectionTable.data">

一开始我以为 前面的data和后面的data都是自己的数组 或者是定义的变量 然而并不是 在前后都改成自己的变量后 就会报

Property ‘xxxxxxx’ does not exist on type ‘NzTableComponent’.

前面部分data 是你定义返回的list ,而后面的 data 是 rowSelectionTable中的属性

如果你要分页的话 把前面部分的data换成你自己的数据即可分页

<tr *ngFor="let xxxxxxxxxxx of rowSelectionTable.data">

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。