mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(datepicker): switch to OnPush change detection (#5584)
Switches the `MdDatepicker` component to `OnPush` change detection. Relates to #5035.
This commit is contained in:
committed by
mmalerba
parent
2294ea28fc
commit
6583505abe
@@ -95,6 +95,7 @@ export class MdDatepickerContent<D> implements AfterContentInit {
|
||||
moduleId: module.id,
|
||||
selector: 'md-datepicker, mat-datepicker',
|
||||
template: '',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class MdDatepicker<D> implements OnDestroy {
|
||||
/** The date to open the calendar to initially. */
|
||||
|
||||
Reference in New Issue
Block a user