File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export class CdkDialogContainer extends BasePortalOutlet implements OnDestroy {
97
97
// tslint:disable:no-host-decorator-in-concrete
98
98
99
99
/** The portal host inside of this container into which the dialog content will be loaded. */
100
- @ViewChild ( PortalHostDirective ) _portalHost : PortalHostDirective ;
100
+ @ViewChild ( PortalHostDirective , { static : true } ) _portalHost : PortalHostDirective ;
101
101
102
102
/** A subject emitting before the dialog enters the view. */
103
103
_beforeEnter : Subject < void > = new Subject ( ) ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export function throwMatDialogContentAlreadyAttachedError() {
72
72
} )
73
73
export class MatDialogContainer extends BasePortalOutlet {
74
74
/** The portal outlet inside of this container into which the dialog content will be loaded. */
75
- @ViewChild ( CdkPortalOutlet ) _portalOutlet : CdkPortalOutlet ;
75
+ @ViewChild ( CdkPortalOutlet , { static : true } ) _portalOutlet : CdkPortalOutlet ;
76
76
77
77
/** The class that traps and manages focus within the dialog. */
78
78
private _focusTrap : FocusTrap ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy
55
55
private _destroyed = false ;
56
56
57
57
/** The portal outlet inside of this container into which the snack bar content will be loaded. */
58
- @ViewChild ( CdkPortalOutlet ) _portalOutlet : CdkPortalOutlet ;
58
+ @ViewChild ( CdkPortalOutlet , { static : true } ) _portalOutlet : CdkPortalOutlet ;
59
59
60
60
/** Subject for notifying that the snack bar has exited from view. */
61
61
readonly _onExit : Subject < any > = new Subject ( ) ;
You can’t perform that action at this time.
0 commit comments