From 1390afef23c600bc481dab830d37548129e548f7 Mon Sep 17 00:00:00 2001 From: WilliamKoza Date: Sat, 15 Jul 2017 10:07:50 +0200 Subject: [PATCH] docs: fix HttpClient sample --- aio/content/guide/http.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index b69725442c..58650ebe45 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -50,7 +50,10 @@ The `get()` method on `HttpClient` makes accessing this data straightforward. ```javascript @Component(...) -export class MyComponent implements NgOnInit { +export class MyComponent implements OnInit { + + results: string[]; + // Inject HttpClient into your component or service. constructor(private http: HttpClient) {}