refactor(paginator): remove extra exposed properties (#14809)

Makes the `_pageIndex` and `_length` properties private so they don't pollute the public API and because they already have public getters.
This commit is contained in:
Kristiyan Kostadinov
2019-02-07 20:53:59 +01:00
committed by Jeremy Elbourn
parent 3ddcd8df29
commit 2da7c11e22
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ export class MatPaginator extends _MatPaginatorBase implements OnInit, OnDestroy
this._pageIndex = Math.max(coerceNumberProperty(value), 0);
this._changeDetectorRef.markForCheck();
}
_pageIndex: number = 0;
private _pageIndex = 0;
/** The length of the total number of items that are being paginated. Defaulted to 0. */
@Input()
@@ -102,7 +102,7 @@ export class MatPaginator extends _MatPaginatorBase implements OnInit, OnDestroy
this._length = coerceNumberProperty(value);
this._changeDetectorRef.markForCheck();
}
_length: number = 0;
private _length = 0;
/** Number of items to display on a page. By default set to 50. */
@Input()
-2
View File
@@ -11,8 +11,6 @@ export declare function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl: MatPagin
export declare class MatPaginator extends _MatPaginatorBase implements OnInit, OnDestroy, CanDisable, HasInitialized {
_displayedPageSizeOptions: number[];
_intl: MatPaginatorIntl;
_length: number;
_pageIndex: number;
color: ThemePalette;
hidePageSize: boolean;
length: number;