parent
b2db6401cc
commit
aec95015f8
|
@ -43,6 +43,7 @@ function mergeOptions(defaultOpts: BaseRequestOptions, providedOpts: RequestOpti
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import {Http, HTTP_PROVIDERS} from '@angular/http';
|
* import {Http, HTTP_PROVIDERS} from '@angular/http';
|
||||||
|
* import 'rxjs/add/operator/map'
|
||||||
* @Component({
|
* @Component({
|
||||||
* selector: 'http-app',
|
* selector: 'http-app',
|
||||||
* viewProviders: [HTTP_PROVIDERS],
|
* viewProviders: [HTTP_PROVIDERS],
|
||||||
|
@ -64,7 +65,7 @@ function mergeOptions(defaultOpts: BaseRequestOptions, providedOpts: RequestOpti
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* http.get('people.json').observer({next: (value) => this.people = value});
|
* http.get('people.json').subscribe((res:Response) => this.people = res.json());
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* The default construct used to perform requests, `XMLHttpRequest`, is abstracted as a "Backend" (
|
* The default construct used to perform requests, `XMLHttpRequest`, is abstracted as a "Backend" (
|
||||||
|
|
Loading…
Reference in New Issue