Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page numbers are not displayed correctly when we have multiple pagination using pagination-template #404

Open
jainankita90 opened this issue Nov 28, 2023 · 2 comments

Comments

@jainankita90
Copy link

jainankita90 commented Nov 28, 2023

=======

Angular version: "15.0.0"

ngx-pagination version: "6.0.3",

Description of issue: Page numbers are not displayed correctly when we have multiple pagination using pagination-template

Expected result: show page numbers based on total Item count for two different collections

Actual result: does not show page number correctly
Screenshot

Demo: this StackBlitz demo

https://angular-q8m7bn.stackblitz.io
https://stackblitz.com/edit/angular-sftrpe?file=app%2Fapp.component.ts
Any relevant code:


@Dorian349
Copy link

You are using the same reference #p for both template. I think you should try to make two separate references.

@Dorian349
Copy link

https://stackblitz.com/edit/angular-ehrlt2?file=app%2Fapp.component.html,app%2Fapp.component.ts

Here is a working version using separate reference for each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants