Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/dialog/dialog-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
},
Expand All @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dialog/dialog-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down