mat-paginator problem with attributes
See original GitHub issueBug, feature request, or proposal:
This is the error I get after I upgraded to the latest version beta 12: length, pageIndex, pageSize and pageSizeOptions are not known attributes of mat-paginator
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'pageIndex' since it isn't a known property of 'mat-paginator'.
1. If 'mat-paginator' is an Angular component and it has 'pageIndex' input, then verify that it is part of this module.
It was working in beta10 and now after the upgrade this is broken. Can anyone help please?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/animations": "^4.3.6",
"@angular/cdk": "^2.0.0-beta.12",
"@angular/common": "^4.3.6",
"@angular/compiler": "^4.3.6",
"@angular/core": "^4.3.6",
"@angular/forms": "^4.3.6",
"@angular/http": "^4.3.6",
"@angular/material": "^2.0.0-beta.12",
"@angular/platform-browser": "^4.3.6",
"@angular/platform-browser-dynamic": "^4.3.6",
"@angular/platform-server": "^4.3.6",
"@angular/router": "^4.3.6",
Is there anything else we should know?
here is my code:
<mat-paginator #paginator [length]="length" [pageIndex]="0" [pageSize]="10" [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Angular MatPaginator doesn`t get initialized - Stack Overflow
My data source is being loaded after ngAfterViewInit which may be the problem. I tried initializing the data source first and then using...
Read more >Paginator | Angular Material
MatPaginator. Component to provide navigation between paged information. Displays the size of the current page, user-selectable options to change that size, ...
Read more >Adding pagination to the mat-table using mat ... - Angular Wiki
mat-paginator selector is part of Angular material module called MatPaginator . ... in the constructor. error If you are using latest versions of...
Read more >ERROR TypeError: Cannot read properties of undefined ...
ERROR TypeError: Cannot read properties of undefined (reading 'page') ... I have declared the ViewChild MatPaginator and also created it in ...
Read more >can't bind to 'pagesizeoptions' since it isn't a known property of ...
How to attach MatPaginator to datasource coming from server in angular material table? ... angular/componentsmat-paginator problem with attributes#7648.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
import { MatTableModule } from ‘@angular/material/table’; import { MatPaginatorModule } from ‘@angular/material’; @NgModule({ imports: [ … MatTableModule, MatPaginatorModule ], … })
@Cumpanasu Florin — Thank you for saving my time