Skip to content

Commit b183562

Browse files
Merge pull request #21 from rofrol/fixes2
fix(pager): use this.snapshot
2 parents 57b01c7 + 9b26661 commit b183562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/examples/src/app/pager/pager.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class PagerUiComponent extends SignalState<PagerState> {
121121
}
122122

123123
public goToEnd(): void {
124-
this.pageIndexChange.emit(Math.ceil(this.total / this.itemsPerPage) - 1);
124+
this.pageIndexChange.emit(Math.ceil(this.snapshot.total / this.snapshot.itemsPerPage) - 1);
125125
}
126126

127127
public itemsPerPageChanged(option: any): void {

0 commit comments

Comments
 (0)