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) {}