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) => {
|
||||
ng1Injector = injector;
|
||||
ObservableWrapper.subscribe(ngZone.onTurnDone,
|
||||
(_) => { ngZone.run(() => rootScope.$apply()); });
|
||||
(_) => ngZone.runOutsideAngular(() => rootScope.$apply()));
|
||||
ng1compilePromise =
|
||||
UpgradeNg1ComponentAdapterBuilder.resolve(this.downgradedComponents, injector);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue