chore(dialog): rename config to avoid name collisions (#5088)

This commit is contained in:
Kara
2017-06-12 10:37:35 -07:00
committed by GitHub
parent c2816efde4
commit b1a9cb549f
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ export function throwMdDialogContentAlreadyAttachedError() {
],
host: {
'[class.mat-dialog-container]': 'true',
'[attr.role]': 'config?.role',
'[attr.role]': '_config?.role',
'[@slideDialog]': '_state',
'(@slideDialog.done)': '_onAnimationDone($event)',
},
@@ -76,7 +76,7 @@ export class MdDialogContainer extends BasePortalHost {
private _document: Document;
/** The dialog configuration. */
config: MdDialogConfig;
_config: MdDialogConfig;
/** State of the dialog animation. */
_state: 'void' | 'enter' | 'exit' = 'enter';
+1 -1
View File
@@ -19,7 +19,7 @@ export class MdDialogRef<T> {
componentInstance: T;
/** Whether the user is allowed to close the dialog. */
disableClose: boolean = this._containerInstance.config.disableClose;
disableClose: boolean = this._containerInstance._config.disableClose;
/** Subject for notifying the user that the dialog has finished closing. */
private _afterClosed: Subject<any> = new Subject();
+1 -1
View File
@@ -146,7 +146,7 @@ export class MdDialog {
let containerPortal = new ComponentPortal(MdDialogContainer, viewContainer);
let containerRef: ComponentRef<MdDialogContainer> = overlay.attach(containerPortal);
containerRef.instance.config = config;
containerRef.instance._config = config;
return containerRef.instance;
}