Created
October 18, 2017 13:20
-
-
Save hbweb/59f84dd4c13111d6e2a41df1a4a54a68 to your computer and use it in GitHub Desktop.
MdpaginatorIntl service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MdPaginator, MdPaginatorIntl } from '@angular/material'; | |
export class MyCustomPaginator extends MdPaginatorIntl{ | |
constructor(){ | |
super(); | |
this.nextPageLabel = ' My new label for next page'; | |
this.previousPageLabel = ' My new label for previous page'; | |
this.itemsPerPageLabel = 'Task per screen'; | |
} | |
} | |
@NgModule({ | |
imports: [ MdPaginator], | |
exports: [], | |
declarations: [], | |
providers: [{ | |
provide: MdPaginatorIntl, useClass: MyCustomPaginator | |
}] | |
}) | |
export class HomeModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment