We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2811b commit 3a3bdf4Copy full SHA for 3a3bdf4
src/cdk/dialog/dialog.ts
@@ -308,7 +308,7 @@ export class Dialog implements OnDestroy {
308
dialogRef: DialogRef<R, C>,
309
dialogContainer: BasePortalOutlet,
310
): Injector {
311
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
+ const userInjector = config.injector ?? config.viewContainerRef?.injector;
312
const providers: StaticProvider[] = [
313
{provide: DIALOG_DATA, useValue: config.data},
314
{provide: DialogRef, useValue: dialogRef},
0 commit comments