fix(upgrade): fix infinite $rootScope.$digest()

Fixes #6385
Closes #6386
This commit is contained in:
Andrei Alecu 2016-01-13 16:50:33 +02:00 committed by Igor Minar
parent e7ad03cba6
commit 7e0f02f96e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}