docs(http): update http docs to mention .map operator

Closes #5947
This commit is contained in:
Rob Wormald 2015-12-16 00:32:25 -08:00 committed by Misko Hevery
parent b2db6401cc
commit aec95015f8
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ function mergeOptions(defaultOpts: BaseRequestOptions, providedOpts: RequestOpti
*
* ```typescript
* import {Http, HTTP_PROVIDERS} from '@angular/http';
* import 'rxjs/add/operator/map'
* @Component({
* selector: 'http-app',
* viewProviders: [HTTP_PROVIDERS],
@ -64,7 +65,7 @@ function mergeOptions(defaultOpts: BaseRequestOptions, providedOpts: RequestOpti
* ### 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" (