2015-06-02 20:44:32 -04:00
|
|
|
import * as ng from './angular2';
|
2015-09-01 05:57:59 -04:00
|
|
|
// the router and http should have their own SFX bundle
|
2015-10-17 14:30:51 -04:00
|
|
|
// But currently the module arithmetic 'angular2/router_sfx - angular2/angular2',
|
2015-05-04 20:57:28 -04:00
|
|
|
// is not support by system builder.
|
|
|
|
import * as router from './router';
|
2015-09-01 05:57:59 -04:00
|
|
|
import * as http from './http';
|
2015-05-04 20:57:28 -04:00
|
|
|
|
2015-07-02 13:43:16 -04:00
|
|
|
var _prevNg = (<any>window).ng;
|
2015-06-02 20:44:32 -04:00
|
|
|
|
2015-07-02 13:43:16 -04:00
|
|
|
(<any>window).ng = ng;
|
2015-04-13 19:48:04 -04:00
|
|
|
|
|
|
|
|
2015-08-07 20:30:36 -04:00
|
|
|
(<any>window).ngRouter = router;
|
2015-09-01 05:57:59 -04:00
|
|
|
(<any>window).ngHttp = http;
|
2015-04-13 19:48:04 -04:00
|
|
|
/**
|
|
|
|
* Calling noConflict will restore window.angular to its pre-angular loading state
|
2015-05-04 20:57:28 -04:00
|
|
|
* and return the angular module object.
|
2015-04-13 19:48:04 -04:00
|
|
|
*/
|
2015-07-02 13:43:16 -04:00
|
|
|
(<any>ng).noConflict = function() {
|
|
|
|
(<any>window).ng = _prevNg;
|
|
|
|
return ng;
|
2015-04-13 19:48:04 -04:00
|
|
|
};
|