question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mat-paginator problem with attributes

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

35reactions
profimedicacommented, Nov 20, 2017

import { MatTableModule } from ‘@angular/material/table’; import { MatPaginatorModule } from ‘@angular/material’; @NgModule({ imports: [ … MatTableModule, MatPaginatorModule ], … })

1reaction
Venkatuidevlopercommented, May 9, 2018

@Cumpanasu Florin — Thank you for saving my time

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found