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

There is a problem with "itemsPerPage" when I use material tabs #360

Open
ibmtenea opened this issue Jun 18, 2020 · 0 comments
Open

There is a problem with "itemsPerPage" when I use material tabs #360

ibmtenea opened this issue Jun 18, 2020 · 0 comments

Comments

@ibmtenea
Copy link

ibmtenea commented Jun 18, 2020

Angular version: 9

ngx-pagination version: last

Description of issue: There is a problem with "itemsPerPage" when I use material tabs. The coincidence between the different components causes that the paginator does not work and that the numbering corresponds to the criteria of the first tab.

Steps to reproduce: steps
Expected result: pagination result
Actual result: paginator does not work and that the numbering corresponds to the criteria of the first tab.

Demo: (if possible, edit this StackBlitz demo and paste the link to your fork) no demo
Any relevant code:

                    <mat-tab-group >

                        <mat-tab label="Mis Issues"><app-listado-issues-inicial></app-listado-issues-inicial></mat-tab>
                        <mat-tab label="Issues en las que participo"><app-listado-issues-participo></app-listado-issues-participo></mat-tab>
                        <mat-tab label="Watching issues"><app-listado-issues-watching></app-listado-issues-watching></mat-tab>
                        <mat-tab label="Issues asignadas a mí"><app-listado-issues-asignadas></app-listado-issues-asignadas></mat-tab>
                    </mat-tab-group> 
 <div class="row" *ngFor="let issue of issues | paginate: { itemsPerPage: 10, currentPage: pi }">
            <div class="col-12"></div>
</div>
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

1 participant