fix(upgrade): ensure downgraded components are created in the Angular zone (#18209)

PR Close #18209
This commit is contained in:
Georgios Kalpakas
2017-07-18 20:16:04 +03:00
committed by Miško Hevery
parent 6d7799fce9
commit 43c33d5663
8 changed files with 409 additions and 179 deletions

View File

@ -497,10 +497,7 @@ export class UpgradeAdapter {
ng1Module.factory(INJECTOR_KEY, () => this.moduleRef !.injector.get(Injector))
.factory(
LAZY_MODULE_REF,
[
INJECTOR_KEY,
(injector: Injector) => ({injector, promise: Promise.resolve(injector)})
])
[INJECTOR_KEY, (injector: Injector) => ({injector, needsInNgZone: false})])
.constant(NG_ZONE_KEY, this.ngZone)
.factory(COMPILER_KEY, () => this.moduleRef !.injector.get(Compiler))
.config([