In the below-attached image, as you can see _paginator key-value pair is Undefined in the MatTableDataSouce object. Because of this, the paginator is not working.
Asked
Active
Viewed 22 times
0
-
is this problem? https://stackoverflow.com/questions/64010053/mat-paginator-of-mat-tabledoesnt-work-with-api-data/64010762#64010762 – Eliseo May 19 '21 at 13:05
1 Answers
0
This issue was getting caused because,
@ViewChild('paginator', { static: true }) paginator: MatPaginator
static was true, by making static false the paginator started to work as expected.
@ViewChild('paginator', { static: false }) paginator: MatPaginator

S J BHAVANA
- 1,421
- 11
- 8