Skip to content

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

@tom-laplace

Description

@tom-laplace

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions