*ngFor 在 angular 4 中仅显示 1000 条记录
*ngFor is displaying only 1000 records in angular 4
我正在使用 ngFor 在视图中显示数据,但它只显示 1000 条记录,我从 Api 获得超过 1000 条记录,即使在 .ts 文件中,我使用控制台,我我正在获取正确的数据,但仅在网格中我获取了 1000 条记录。
<tr *ngFor="let item of mf.data | orderBy: {property: column, direction: direction } ; let ndx = index" class="InnerFormCenterLabel">
<td>{{item.ROWNUM}}</td>
<td><a style="color: blue;text-decoration: underline;cursor:pointer" (click)="openReportDeal(item)">{{item.CONT_SUB_MATTER }}</a></td>
<td>{{item.BuNo.}}</td>
<td>{{item.Contract}}</td>
</tr>
<table class="table tableheight table-responsive table-striped table-bordered" [mfData]="data" #mf="mfDataTable" [mfRowsOnPage]="10000">
[mfRowsOnPage] 默认值为 1000。在明确提到变量 [mfRowsOnPage] 并分配一些所需的值后,它工作正常。
我正在使用 ngFor 在视图中显示数据,但它只显示 1000 条记录,我从 Api 获得超过 1000 条记录,即使在 .ts 文件中,我使用控制台,我我正在获取正确的数据,但仅在网格中我获取了 1000 条记录。
<tr *ngFor="let item of mf.data | orderBy: {property: column, direction: direction } ; let ndx = index" class="InnerFormCenterLabel">
<td>{{item.ROWNUM}}</td>
<td><a style="color: blue;text-decoration: underline;cursor:pointer" (click)="openReportDeal(item)">{{item.CONT_SUB_MATTER }}</a></td>
<td>{{item.BuNo.}}</td>
<td>{{item.Contract}}</td>
</tr>
<table class="table tableheight table-responsive table-striped table-bordered" [mfData]="data" #mf="mfDataTable" [mfRowsOnPage]="10000">
[mfRowsOnPage] 默认值为 1000。在明确提到变量 [mfRowsOnPage] 并分配一些所需的值后,它工作正常。