mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
4dfa6f1942
commit
25f593ce2a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user