From 9c63a471bbcda6bcb1f3503b8e896eafc0d2d445 Mon Sep 17 00:00:00 2001 From: Eric Mendes Dantas Date: Thu, 8 Oct 2015 17:21:12 -0300 Subject: [PATCH] docs(http): use http.request(FOO) instead of http(FOO) Closes #4641 --- modules/angular2/src/http/backends/xhr_backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/http/backends/xhr_backend.ts b/modules/angular2/src/http/backends/xhr_backend.ts index b0a9309131..371b9965a0 100644 --- a/modules/angular2/src/http/backends/xhr_backend.ts +++ b/modules/angular2/src/http/backends/xhr_backend.ts @@ -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()); * } * } * ```