ngx-pagination icon indicating copy to clipboard operation
ngx-pagination copied to clipboard

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

Open jainankita90 opened this issue 2 years ago • 2 comments

=======

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:


jainankita90 avatar Nov 28 '23 15:11 jainankita90

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

Dorian349 avatar Jan 03 '24 15:01 Dorian349

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.

Dorian349 avatar Jan 03 '24 15:01 Dorian349