File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function throwMdDialogContentAlreadyAttachedError() {
57
57
] ,
58
58
host : {
59
59
'[class.mat-dialog-container]' : 'true' ,
60
- '[attr.role]' : 'config ?.role' ,
60
+ '[attr.role]' : '_config ?.role' ,
61
61
'[@slideDialog]' : '_state' ,
62
62
'(@slideDialog.done)' : '_onAnimationDone($event)' ,
63
63
} ,
@@ -76,7 +76,7 @@ export class MdDialogContainer extends BasePortalHost {
76
76
private _document : Document ;
77
77
78
78
/** The dialog configuration. */
79
- config : MdDialogConfig ;
79
+ _config : MdDialogConfig ;
80
80
81
81
/** State of the dialog animation. */
82
82
_state : 'void' | 'enter' | 'exit' = 'enter' ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class MdDialogRef<T> {
19
19
componentInstance : T ;
20
20
21
21
/** Whether the user is allowed to close the dialog. */
22
- disableClose : boolean = this . _containerInstance . config . disableClose ;
22
+ disableClose : boolean = this . _containerInstance . _config . disableClose ;
23
23
24
24
/** Subject for notifying the user that the dialog has finished closing. */
25
25
private _afterClosed : Subject < any > = new Subject ( ) ;
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class MdDialog {
146
146
let containerPortal = new ComponentPortal ( MdDialogContainer , viewContainer ) ;
147
147
148
148
let containerRef : ComponentRef < MdDialogContainer > = overlay . attach ( containerPortal ) ;
149
- containerRef . instance . config = config ;
149
+ containerRef . instance . _config = config ;
150
150
151
151
return containerRef . instance ;
152
152
}
You can’t perform that action at this time.
0 commit comments