fix(core): remove NgZone_ and use NgZone instead

This commit is contained in:
vsavkin
2015-10-08 13:33:22 -07:00
parent bc8c194665
commit bba0248989
17 changed files with 166 additions and 198 deletions

View File

@ -34,7 +34,6 @@ import {
} from './constants';
import {Ng2ComponentFacade} from './ng2_facade';
import {ExportedNg1Component} from './ng1_facade';
import {NgZone_} from "angular2/src/core/zone/ng_zone";
var moduleCount: number = 0;
@ -116,7 +115,7 @@ export class UpgradeModule {
'$rootScope',
(injector: angular.auto.IInjectorService, rootScope: angular.IRootScopeService) => {
ng1Injector = injector;
(<NgZone_>ngZone).overrideOnTurnDone(() => rootScope.$apply());
ngZone.overrideOnTurnDone(() => rootScope.$apply());
ExportedNg1Component.resolve(this.exportedNg1Components, injector);
}
]);