add reset pagination (#3239)

This commit is contained in:
Eugenio Romano
2018-04-26 15:15:02 +01:00
committed by GitHub
parent 8872706eab
commit b18b041ade
3 changed files with 19 additions and 7 deletions

View File

@@ -104,6 +104,11 @@ export class InfinitePaginationComponent implements OnInit, OnDestroy, Paginatio
}
}
reset() {
this.pagination.skipCount = 0;
this.target.updatePagination(this.pagination);
}
ngOnDestroy() {
if (this.paginationSubscription) {
this.paginationSubscription.unsubscribe();