diff --git a/modules/angular2/angular2_sfx.ts b/modules/angular2/angular2_sfx.ts index ef31e617ec..63e8b0042a 100644 --- a/modules/angular2/angular2_sfx.ts +++ b/modules/angular2/angular2_sfx.ts @@ -4,27 +4,17 @@ import * as ng from './angular2'; // is not support by system builder. import * as router from './router'; -var angular: AngularOne = ng; -(window).angular = angular; +var _prevNg = (window).ng; -var _prevAngular = (window).angular; +(window).ng = ng; -angular.router = router; +(ng).router = router; /** * Calling noConflict will restore window.angular to its pre-angular loading state * and return the angular module object. */ -angular.noConflict = function() { - (window).angular = _prevAngular; - return angular; +(ng).noConflict = function() { + (window).ng = _prevNg; + return ng; }; - -interface AngularOne { - router: any; - noConflict(): any; -} - -interface AngularWindow extends Window { - angular: any; -}