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

PaginatePipe: Argument is missing the following required properties: currentPage #405

Open
tom-laplace opened this issue Feb 6, 2024 · 1 comment

Comments

@tom-laplace
Copy link

Angular version: 15.2.9

ngx-pagination version: 6.0.3

Description of issue:

When I try to use the paginate pipe with Observables and async pipe, I got a console error and no data.

Example :

 *ngFor="let activite of listeActivites$ | async | paginate: {
            itemsPerPage: 10,
            currentPage: p,
          }"

The error :

PaginatePipe: Argument is missing the following required properties: currentPage

Steps to reproduce: Use an async pipe before paginate pipe.

Expected result: To paginate the data correctly.

Actual result: Error in the console and no data to display.

@michaelbromley
Copy link
Owner

Hi,

Can you put together a stackblitz reproduction of this?

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