File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- import { Component } from '@angular/core' ;
1+ import { ChangeDetectionStrategy , Component } from '@angular/core' ;
22import { MdDatepickerInputEvent } from '@angular/material' ;
33
44
@@ -7,6 +7,7 @@ import {MdDatepickerInputEvent} from '@angular/material';
77 selector : 'datepicker-demo' ,
88 templateUrl : 'datepicker-demo.html' ,
99 styleUrls : [ 'datepicker-demo.css' ] ,
10+ changeDetection : ChangeDetectionStrategy . OnPush ,
1011} )
1112export class DatepickerDemo {
1213 touch : boolean ;
Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ export class MdDatepicker<D> implements OnDestroy {
282282 /** Open the calendar as a dialog. */
283283 private _openAsDialog ( ) : void {
284284 this . _dialogRef = this . _dialog . open ( MdDatepickerContent , {
285- viewContainerRef : this . _viewContainerRef ,
286285 direction : this . _dir ? this . _dir . value : 'ltr'
287286 } ) ;
288287 this . _dialogRef . afterClosed ( ) . subscribe ( ( ) => this . close ( ) ) ;
You can’t perform that action at this time.
0 commit comments