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

PaginatePipe: Argument is missing the following required properties: currentPage

Open tom-laplace opened this issue 1 year ago • 1 comments

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.

tom-laplace avatar Feb 06 '24 16:02 tom-laplace

Hi,

Can you put together a stackblitz reproduction of this?

michaelbromley avatar Feb 07 '24 08:02 michaelbromley