Skip to content

Commit

Permalink
fix paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippov committed Sep 30, 2017
1 parent 55b2543 commit 024c9ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"private": true,
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/cdk": "^2.0.0-beta.10",
"@angular/cdk": "^2.0.0-beta.11",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/material": "^2.0.0-beta.10",
"@angular/material": "^2.0.0-beta.11",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/shared/custom-md-paginator-intl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const rangeLabel = (page: number, pageSize: number, length: number) => {
return `${startIndex + 1} - ${endIndex} из ${length}`;
};

export function customMdPaginatorIntl(): MdPaginatorIntl {
export function customMdPaginatorIntl(): MdPaginatorIntl {
const pagIntl = new MdPaginatorIntl();
pagIntl.itemsPerPageLabel = 'Количество элементов на странице:';
pagIntl.nextPageLabel = 'Следующая страница';
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import {customMdPaginatorIntl} from "./custom-md-paginator-intl";
providers: [
{provide: DateAdapter, useClass: CustomNativeDateAdapter},
{provide: LOCALE_ID, useValue: 'ru'},
{provide: MdPaginatorIntl, useValue: customMdPaginatorIntl()},
{provide: MdPaginatorIntl, useFactory: customMdPaginatorIntl},
]
})
export class SharedModule {
Expand Down

0 comments on commit 024c9ee

Please sign in to comment.