diff --git a/modules/playground/src/http/BUILD.bazel b/modules/playground/src/http/BUILD.bazel
index 1457d17c7f..13224b4296 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 4a1be633d0..47df87d00b 100644
--- a/modules/playground/src/http/app/http_comp.ts
+++ b/modules/playground/src/http/app/http_comp.ts
@@ -6,9 +6,12 @@
* found in the LICENSE file at https://angular.io/license
*/
+import {HttpClient} from '@angular/common/http';
import {Component} from '@angular/core';
-import {Http, Response} from '@angular/http';
-import {map} from 'rxjs/operators';
+
+interface Person {
+ name: string;
+}
@Component({
selector: 'http-app',
@@ -16,16 +19,14 @@ import {map} from 'rxjs/operators';
people
-
- hello, {{person['name']}}
+ hello, {{person.name}}
`
})
export class HttpCmp {
- people: Object[];
- constructor(http: Http) {
- http.get('./people.json')
- .pipe(map((res: Response) => res.json()))
- .subscribe((people: Array