title: Property 'results' does not exist on type 'AppComponent'
body: <p>I am trying to get the <code>results</code> field from a json response however I get the error <code>Property 'results' does not exist on type 'AppComponent</code></p>
  
  <pre><code>import { Component } from '@angular/core';
  
  //in place where you wanted to use `HttpClient`
  import { HttpClient } from '@angular/common/http';
  
  
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  
  export class AppComponent {
    title = 'app';
  
    // Inject HttpClient into your component or service.
    constructor(private http: HttpClient) {}
    ngOnInit(): void {
  
      // Make the HTTP request:
      this.http.get('assets/api/list.json').subscribe(data =&gt; {
  
        // Read the result field from the JSON response.
        this.results = data['results'];
  
      });
    }
  }
  </code></pre>