chore(datepicker): switch to OnPush change detection (#5584)

Switches the `MdDatepicker` component to `OnPush` change detection.

Relates to #5035.
This commit is contained in:
Kristiyan Kostadinov
2017-07-09 07:22:19 +02:00
committed by mmalerba
parent 2294ea28fc
commit 6583505abe
+1
View File
@@ -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. */