Skip to content

Commit 6583505

Browse files
crisbetommalerba
authored andcommitted
chore(datepicker): switch to OnPush change detection (#5584)
Switches the `MdDatepicker` component to `OnPush` change detection. Relates to #5035.
1 parent 2294ea2 commit 6583505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/datepicker/datepicker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export class MdDatepickerContent<D> implements AfterContentInit {
9595
moduleId: module.id,
9696
selector: 'md-datepicker, mat-datepicker',
9797
template: '',
98+
changeDetection: ChangeDetectionStrategy.OnPush,
9899
})
99100
export class MdDatepicker<D> implements OnDestroy {
100101
/** The date to open the calendar to initially. */

0 commit comments

Comments
 (0)