From 59c62893aca789918971b468fac622b8e53de8ec Mon Sep 17 00:00:00 2001 From: Mac Date: Tue, 4 Apr 2017 17:49:44 -0700 Subject: [PATCH] docs(dialog): document viewContainerRef config option (#3825) --- src/lib/dialog/dialog-config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/dialog/dialog-config.ts b/src/lib/dialog/dialog-config.ts index 37337591776..30870ff7ef9 100644 --- a/src/lib/dialog/dialog-config.ts +++ b/src/lib/dialog/dialog-config.ts @@ -15,6 +15,13 @@ export interface DialogPosition { * Configuration for opening a modal dialog with the MdDialog service. */ export class MdDialogConfig { + + /** + * Where the attached component should live in Angular's *logical* component tree. + * This affects what is available for injection and the change detection order for the + * component instantiated inside of the dialog. This does not affect where the dialog + * content will be rendered. + */ viewContainerRef?: ViewContainerRef; /** The ARIA role of the dialog element. */