angular-docs-cn/modules/angular2/angular2_sfx.ts
Phillip Alexander 716ce08a93 docs(angular2/angular2_sfx): Correct typo
Add correct spelling of the word "arithmetic"

Closes #4066
2015-09-11 15:25:33 -07:00

21 lines
540 B
TypeScript

import * as ng from './angular2';
// the router should have its own SFX bundle
// But currently the module arithmetic 'angular2/router_sfx - angular2/angular2',
// is not support by system builder.
import * as router from './router';
var _prevNg = (<any>window).ng;
(<any>window).ng = ng;
(<any>window).ngRouter = router;
/**
* Calling noConflict will restore window.angular to its pre-angular loading state
* and return the angular module object.
*/
(<any>ng).noConflict = function() {
(<any>window).ng = _prevNg;
return ng;
};