We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d553cef commit d1150b9Copy full SHA for d1150b9
src/lib/paginator/paginator-intl.ts
@@ -24,12 +24,12 @@ export class MdPaginatorIntl {
24
previousPageLabel = 'Previous page';
25
26
/** 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) {
+ getRangeLabel = (page: number, pageSize: number, length: number) => {
28
if (length == 0 || pageSize == 0) { return `0 of ${length}`; }
29
30
length = Math.max(length, 0);
31
32
- const startIndex = pageIndex * pageSize;
+ const startIndex = page * pageSize;
33
34
// If the start index exceeds the list length, do not try and fix the end index to the end.
35
const endIndex = startIndex < length ?
0 commit comments