angular-2-data-table
angular-2-data-table copied to clipboard
[limit]="5" is not working when it first load.
I use limit by default 5. But it keeping showing me all records at first load. However, if i manually key in limit value, it works. Please suggest.
Having exactly the same issue. Did you solved it?
same here, any update in this issue ?
Change your limit inside initializeTable as well.
public initializeTable(inspections: Inspection[]) { this.tableResource = new DataTableResource(inspections); this.tableResource.query({ index: 0, offset: 0, limit: 20, sortBy: 'inspectedDate', sortAsc: true }) .then(items => this.items = items); this.tableResource.count() .then(count => this.itemCount = count); }