Skip to content

Commit

Permalink
fix(upgrade): fix infinite $rootScope.$digest()
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu authored and IgorMinar committed Feb 9, 2016
1 parent e7ad03c commit 7e0f02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/angular2/src/upgrade/upgrade_adapter.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e0f02f

Please sign in to comment.