docs(core): replace angular2/angular2 with the right barrel import.

Related to #5710
Closes #5847
This commit is contained in:
Tobias Bosch
2015-12-11 15:01:37 -08:00
parent 200dc00dbb
commit b1b0593ddf
28 changed files with 60 additions and 46 deletions

View File

@ -117,7 +117,8 @@ export class RequestOptions {
* ### Example ([live demo](http://plnkr.co/edit/LEKVSx?p=preview))
*
* ```typescript
* import {provide, bootstrap} from 'angular2/angular2';
* import {provide} from 'angular2/core';
* import {bootstrap} from 'angular2/platform/browser';
* import {HTTP_PROVIDERS, Http, BaseRequestOptions, RequestOptions} from 'angular2/http';
* import {App} from './myapp';
*

View File

@ -115,7 +115,8 @@ export class ResponseOptions {
* ### Example ([live demo](http://plnkr.co/edit/qv8DLT?p=preview))
*
* ```typescript
* import {provide, bootstrap} from 'angular2/angular2';
* import {provide} from 'angular2/core';
* import {bootstrap} from 'angular2/platform/browser';
* import {HTTP_PROVIDERS, Headers, Http, BaseResponseOptions, ResponseOptions} from
* 'angular2/http';
* import {App} from './myapp';

View File

@ -2,7 +2,7 @@
// require('reflect-metadata');
// require('es6-shim');
// import {HTTP_PROVIDERS, JSONP_PROVIDERS, Http, Jsonp} from './http';
// import {Injector} from 'angular2/angular2';
// import {Injector} from 'angular2/core';
// export * from './http';
// /**

View File

@ -25,7 +25,7 @@ import {
* where it may be useful to generate a `Request` with arbitrary headers and search params.
*
* ```typescript
* import {Injectable, Injector} from 'angular2/angular2';
* import {Injectable, Injector} from 'angular2/core';
* import {HTTP_PROVIDERS, Http, Request, RequestMethod} from 'angular2/http';
*
* @Injectable()