refactor(upgrade): simplify special handling of ngUpgradeLite in downgradeComponent() (#27217)

PR Close #27217
This commit is contained in:
George Kalpakas
2018-11-20 19:02:52 +02:00
committed by Matias Niemelä
parent 07ada7f3d9
commit 8a7498e0ef
6 changed files with 17 additions and 24 deletions

View File

@ -510,10 +510,7 @@ export class UpgradeAdapter {
.factory(INJECTOR_KEY, () => this.moduleRef !.injector.get(Injector))
.factory(
LAZY_MODULE_REF,
[
INJECTOR_KEY,
(injector: Injector) => ({ injector, needsNgZone: false } as LazyModuleRef)
])
[INJECTOR_KEY, (injector: Injector) => ({ injector } as LazyModuleRef)])
.constant(NG_ZONE_KEY, this.ngZone)
.factory(COMPILER_KEY, () => this.moduleRef !.injector.get(Compiler))
.config([