Components: mat-paginator problem with attributes

Created on 9 Oct 2017  路  5Comments  路  Source: angular/components

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>

Most helpful comment

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

All 5 comments

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

Thank you @profimedica

@Cumpanasu Florin --- Thank you for saving my time

Thanku @profimedica

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmcgoldrick picture jmcgoldrick  路  59Comments

kara picture kara  路  94Comments

vibingopal picture vibingopal  路  80Comments

abdulkareemnalband picture abdulkareemnalband  路  165Comments

mmalerba picture mmalerba  路  77Comments