refactor(common): removengModuleFactory input of NgComponentOutlet (#62838)

This was deprecated by #44815

BREAKING CHANGE: NgModuleFactory has been removed, use NgModule instead.

PR Close #62838
This commit is contained in:
Matthieu Riegler
2025-07-27 15:18:09 +02:00
committed by Jessica Janiuk
parent 4dfa6f1942
commit 25f593ce2a
4 changed files with 1 additions and 77 deletions
@@ -111,10 +111,6 @@ export class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy
@Input() ngComponentOutletContent?: any[][];
@Input() ngComponentOutletNgModule?: Type<any>;
/**
* @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.
*/
@Input() ngComponentOutletNgModuleFactory?: NgModuleFactory<any>;
private _componentRef: ComponentRef<T> | undefined;
private _moduleRef: NgModuleRef<any> | undefined;
@@ -177,10 +173,6 @@ export class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy
this.ngComponentOutletNgModule,
getParentInjector(injector),
);
} else if (this.ngComponentOutletNgModuleFactory) {
this._moduleRef = this.ngComponentOutletNgModuleFactory.create(
getParentInjector(injector),
);
} else {
this._moduleRef = undefined;
}