mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(datepicker): add missing exportAs (#7782)
This commit is contained in:
@@ -40,6 +40,7 @@ export class MatCalendarCell {
|
||||
host: {
|
||||
'class': 'mat-calendar-body',
|
||||
},
|
||||
exportAs: 'matCalendarBody',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -56,6 +56,7 @@ import {MatYearView} from './year-view';
|
||||
host: {
|
||||
'class': 'mat-calendar',
|
||||
},
|
||||
exportAs: 'matCalendar',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -32,6 +32,7 @@ import {MatDatepickerIntl} from './datepicker-intl';
|
||||
host: {
|
||||
'class': 'mat-datepicker-toggle',
|
||||
},
|
||||
exportAs: 'matDatepickerToggle',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -84,6 +84,7 @@ export const MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER = {
|
||||
'[class.mat-datepicker-content-touch]': 'datepicker.touchUi',
|
||||
'(keydown)': '_handleKeydown($event)',
|
||||
},
|
||||
exportAs: 'matDatepickerContent',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -34,6 +34,7 @@ const DAYS_PER_WEEK = 7;
|
||||
moduleId: module.id,
|
||||
selector: 'mat-month-view',
|
||||
templateUrl: 'month-view.html',
|
||||
exportAs: 'matMonthVeiw',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -31,6 +31,7 @@ import {createMissingDateImplError} from './datepicker-errors';
|
||||
moduleId: module.id,
|
||||
selector: 'mat-year-view',
|
||||
templateUrl: 'year-view.html',
|
||||
exportAs: 'matYearView',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
preserveWhitespaces: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
Reference in New Issue
Block a user