title: Angular Error TS2339: Property 'vehicle' does not exist on type 'Vehicle[]'
body: <p>Angular Error TS2339: Property 'vehicle' does not exist on type 'Vehicle[]'. the error was on data.vehicle.results. Any idea? is the problem on the model Vehicle? I've tried adding vehicle on model sames not working.</p>
  
  <h1>1 service</h1>
  
  <pre><code>getVehicles(): Observable&lt;Vehicle[]&gt; {
          return this.http.get&lt;Vehicle[]&gt;(CONSTANST.routes.vehicle.list);
      }
  </code></pre>
  
  <h1>2 component</h1>
  
  <pre><code>  getVehicles() {
          this.priceruleService.getVehicles()
              .pipe(
                  map(data =&gt; {
                      console.log("data :" , data.vehicle.results)
                      return data
                  })
              )
              .subscribe(data =&gt; this.vehicles = data);
      }
  </code></pre>
  
  <h1>model</h1>
  
  <pre><code>export interface Vehicle {
      _id: number
      name: string
      Type: string
      Stock: string
      vehicle: any
  }
  </code></pre>
  
  <h1>data structure</h1>
  
  <p><a href="https://imgur.com/a/sbJTbIG" rel="nofollow noreferrer">https://imgur.com/a/sbJTbIG</a></p>