Skip to content

Commit 9b26661

Browse files
committed
fix(pager): use this.snapshot
1 parent 57b01c7 commit 9b26661

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)