Skip to content

Commit

Permalink
Merge pull request #21 from rofrol/fixes2
Browse files Browse the repository at this point in the history
fix(pager): use this.snapshot
  • Loading branch information
simplifiedcourses authored May 29, 2024
2 parents 57b01c7 + 9b26661 commit b183562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/examples/src/app/pager/pager.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class PagerUiComponent extends SignalState<PagerState> {
}

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

public itemsPerPageChanged(option: any): void {
Expand Down

0 comments on commit b183562

Please sign in to comment.