Skip to content

Commit 98b703c

Browse files
committed
intl change
1 parent f0c833b commit 98b703c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/paginator/paginator-intl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export class MdPaginatorIntl {
2424
previousPageLabel = 'Previous page';
2525

2626
/** A label for the range of items within the current page and the length of the whole list. */
27-
getRangeLabel(pageIndex: number, pageSize: number, length: number) {
27+
getRangeLabel = (page: number, pageSize: number, length: number) => {
2828
if (length == 0 || pageSize == 0) { return `0 of ${length}`; }
2929

3030
length = Math.max(length, 0);
3131

32-
const startIndex = pageIndex * pageSize;
32+
const startIndex = page * pageSize;
3333

3434
// If the start index exceeds the list length, do not try and fix the end index to the end.
3535
const endIndex = startIndex < length ?

0 commit comments

Comments
 (0)