Skip to content

Commit cb6f053

Browse files
MichaelJamesParsonswagnermaciel
authored andcommitted
refactor(material/datepicker): expose month view change detector ref (#21048)
(cherry picked from commit a30b38f)
1 parent 42acf11 commit cb6f053

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/material/datepicker/month-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class MatMonthView<D> implements AfterContentInit, OnChanges, OnDestroy {
180180
/** The names of the weekdays. */
181181
_weekdays: {long: string, narrow: string}[];
182182

183-
constructor(private _changeDetectorRef: ChangeDetectorRef,
183+
constructor(readonly _changeDetectorRef: ChangeDetectorRef,
184184
@Optional() @Inject(MAT_DATE_FORMATS) private _dateFormats: MatDateFormats,
185185
@Optional() public _dateAdapter: DateAdapter<D>,
186186
@Optional() private _dir?: Directionality,

tools/public_api_guard/material/datepicker.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export declare class MatEndDate<D> extends _MatDateRangeInputBase<D> implements
385385
}
386386

387387
export declare class MatMonthView<D> implements AfterContentInit, OnChanges, OnDestroy {
388+
readonly _changeDetectorRef: ChangeDetectorRef;
388389
_comparisonRangeEnd: number | null;
389390
_comparisonRangeStart: number | null;
390391
_dateAdapter: DateAdapter<D>;

0 commit comments

Comments
 (0)