docs(http): use http.request(FOO) instead of http(FOO)

Closes #4641
This commit is contained in:
Eric Mendes Dantas 2015-10-08 17:21:12 -03:00 committed by Misko Hevery
parent 127d6b6441
commit 9c63a471bb
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ export class XHRConnection implements Connection {
* })
* class MyComponent {
* constructor(http:Http) {
* http('people.json').subscribe(res => this.people = res.json());
* http.request('people.json').subscribe(res => this.people = res.json());
* }
* }
* ```