41914: DSO list finished without item count

This commit is contained in:
Lotte Hofstede
2017-06-09 14:40:14 +02:00
parent bdf6d006e7
commit 3929a49c1d
21 changed files with 534 additions and 30 deletions

View File

@@ -0,0 +1,11 @@
<ds-pagination [paginationOptions]="config"
[collectionSize]="(objects.payload | async)?.length"
(pageChange)="config.currentPage = $event"
(pageSizeChange)="config.pageSize = $event">
<ul *ngIf="objects.hasSucceeded | async">
<li *ngFor="let object of (objects.payload | async) | paginate: { itemsPerPage: config.pageSize, currentPage: config.currentPage, totalItems: (objects.payload | async)?.length }">
<ds-object-list-element [object]="object"></ds-object-list-element>
</li>
</ul>
</ds-pagination>