From 7e0f02f96e59863dff563cb7036c21aa58220a67 Mon Sep 17 00:00:00 2001 From: Andrei Alecu Date: Wed, 13 Jan 2016 16:50:33 +0200 Subject: [PATCH] fix(upgrade): fix infinite $rootScope.$digest() Fixes #6385 Closes #6386 --- modules/angular2/src/upgrade/upgrade_adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/upgrade/upgrade_adapter.ts b/modules/angular2/src/upgrade/upgrade_adapter.ts index a282d7aeef..2e417f06b3 100644 --- a/modules/angular2/src/upgrade/upgrade_adapter.ts +++ b/modules/angular2/src/upgrade/upgrade_adapter.ts @@ -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); }