X Tutup
Skip to content

Commit 9c63a47

Browse files
ericmdantasmhevery
authored andcommitted
docs(http): use http.request(FOO) instead of http(FOO)
Closes angular#4641
1 parent 127d6b6 commit 9c63a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/http/backends/xhr_backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class XHRConnection implements Connection {
101101
* })
102102
* class MyComponent {
103103
* constructor(http:Http) {
104-
* http('people.json').subscribe(res => this.people = res.json());
104+
* http.request('people.json').subscribe(res => this.people = res.json());
105105
* }
106106
* }
107107
* ```

0 commit comments

Comments
 (0)
X Tutup