fix(upgrade): fix infinite $rootScope.$digest()
Fixes #6385 Closes #6386
This commit is contained in:
parent
e7ad03cba6
commit
7e0f02f96e
|
@ -339,7 +339,7 @@ export class UpgradeAdapter {
|
||||||
(injector: angular.IInjectorService, rootScope: angular.IRootScopeService) => {
|
(injector: angular.IInjectorService, rootScope: angular.IRootScopeService) => {
|
||||||
ng1Injector = injector;
|
ng1Injector = injector;
|
||||||
ObservableWrapper.subscribe(ngZone.onTurnDone,
|
ObservableWrapper.subscribe(ngZone.onTurnDone,
|
||||||
(_) => { ngZone.run(() => rootScope.$apply()); });
|
(_) => ngZone.runOutsideAngular(() => rootScope.$apply()));
|
||||||
ng1compilePromise =
|
ng1compilePromise =
|
||||||
UpgradeNg1ComponentAdapterBuilder.resolve(this.downgradedComponents, injector);
|
UpgradeNg1ComponentAdapterBuilder.resolve(this.downgradedComponents, injector);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue