diff --git a/modules/playground/src/http/BUILD.bazel b/modules/playground/src/http/BUILD.bazel
index 13224b4296..1457d17c7f 100644
--- a/modules/playground/src/http/BUILD.bazel
+++ b/modules/playground/src/http/BUILD.bazel
@@ -10,8 +10,8 @@ ng_module(
# TODO: FW-1004 Type checking is currently not complete.
type_check = False,
deps = [
- "//packages/common/http",
"//packages/core",
+ "//packages/http",
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
"@npm//rxjs",
diff --git a/modules/playground/src/http/app/http_comp.ts b/modules/playground/src/http/app/http_comp.ts
index 47df87d00b..4a1be633d0 100644
--- a/modules/playground/src/http/app/http_comp.ts
+++ b/modules/playground/src/http/app/http_comp.ts
@@ -6,12 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
-import {HttpClient} from '@angular/common/http';
import {Component} from '@angular/core';
-
-interface Person {
- name: string;
-}
+import {Http, Response} from '@angular/http';
+import {map} from 'rxjs/operators';
@Component({
selector: 'http-app',
@@ -19,14 +16,16 @@ interface Person {
people
-
- hello, {{person.name}}
+ hello, {{person['name']}}
`
})
export class HttpCmp {
- people: Person[];
- constructor(http: HttpClient) {
- http.get('./people.json').subscribe((people: Person[]) => this.people = people);
+ people: Object[];
+ constructor(http: Http) {
+ http.get('./people.json')
+ .pipe(map((res: Response) => res.json()))
+ .subscribe((people: Array