File tree 2 files changed +2
-2
lines changed
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' ;
2
2
import { MdDatepickerInputEvent } from '@angular/material' ;
3
3
4
4
@@ -7,6 +7,7 @@ import {MdDatepickerInputEvent} from '@angular/material';
7
7
selector : 'datepicker-demo' ,
8
8
templateUrl : 'datepicker-demo.html' ,
9
9
styleUrls : [ 'datepicker-demo.css' ] ,
10
+ changeDetection : ChangeDetectionStrategy . OnPush ,
10
11
} )
11
12
export class DatepickerDemo {
12
13
touch : boolean ;
Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ export class MdDatepicker<D> implements OnDestroy {
282
282
/** Open the calendar as a dialog. */
283
283
private _openAsDialog ( ) : void {
284
284
this . _dialogRef = this . _dialog . open ( MdDatepickerContent , {
285
- viewContainerRef : this . _viewContainerRef ,
286
285
direction : this . _dir ? this . _dir . value : 'ltr'
287
286
} ) ;
288
287
this . _dialogRef . afterClosed ( ) . subscribe ( ( ) => this . close ( ) ) ;
You can’t perform that action at this time.
0 commit comments