代码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">