2015-06-03 00:44:32 +00:00
|
|
|
import * as ng from './angular2';
|
2015-05-21 00:19:46 +00:00
|
|
|
// the router should have its own SFX bundle
|
2015-05-05 00:57:28 +00:00
|
|
|
// But currently the module arithemtic 'angular2/router_sfx - angular2/angular2',
|
|
|
|
|
// is not support by system builder.
|
|
|
|
|
import * as router from './router';
|
|
|
|
|
|
2015-07-02 17:43:16 +00:00
|
|
|
var _prevNg = (<any>window).ng;
|
2015-06-03 00:44:32 +00:00
|
|
|
|
2015-07-02 17:43:16 +00:00
|
|
|
(<any>window).ng = ng;
|
2015-04-13 23:48:04 +00:00
|
|
|
|
|
|
|
|
|
2015-07-02 17:43:16 +00:00
|
|
|
(<any>ng).router = router;
|
2015-04-13 23:48:04 +00:00
|
|
|
/**
|
|
|
|
|
* Calling noConflict will restore window.angular to its pre-angular loading state
|
2015-05-05 00:57:28 +00:00
|
|
|
* and return the angular module object.
|
2015-04-13 23:48:04 +00:00
|
|
|
*/
|
2015-07-02 17:43:16 +00:00
|
|
|
(<any>ng).noConflict = function() {
|
|
|
|
|
(<any>window).ng = _prevNg;
|
|
|
|
|
return ng;
|
2015-04-13 23:48:04 +00:00
|
|
|
};
|