mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(common): removes unused NgModuleFactory config in NgComponentOutlet
Removes the `ngComponentOutletNgModuleFactory` in `_needToReCreateNgModuleInstance`
This commit is contained in:
parent
1aed9408a4
commit
24243e34d9
1 changed files with 1 additions and 7 deletions
|
|
@ -50,9 +50,6 @@ import {
|
|||
* * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
|
||||
* module dynamically, then loading a component from that module.
|
||||
*
|
||||
* * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
|
||||
* NgModule factory to allow loading another module dynamically, then loading a component from that
|
||||
* module. Use `ngComponentOutletNgModule` instead.
|
||||
*
|
||||
* ### Syntax
|
||||
*
|
||||
|
|
@ -133,10 +130,7 @@ export class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy
|
|||
// Note: square brackets property accessor is safe for Closure compiler optimizations (the
|
||||
// `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that
|
||||
// were changed).
|
||||
return (
|
||||
changes['ngComponentOutletNgModule'] !== undefined ||
|
||||
changes['ngComponentOutletNgModuleFactory'] !== undefined
|
||||
);
|
||||
return changes['ngComponentOutletNgModule'] !== undefined;
|
||||
}
|
||||
|
||||
private _needToReCreateComponentInstance(changes: SimpleChanges): boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue