title: How do I console.log the content of a response?
body: <p>I have the following in <code>vehicle.service.ts</code>:</p>
  
  <pre><code>getVehicleById(id: number): Observable&lt;Vehicle&gt; {
  
  const url = `${this.vehicleUrl}?vehicleId=${id}`;
  
  console.log(`GET vehicle details url: ${url}`);
  
  return this.http.get&lt;Vehicle&gt;(url).pipe(
      tap(_ =&gt; console.log(`getVehicleById(): fetched vehicle id = ${id}`)),
      catchError(this.handleError&lt;Vehicle&gt;(`vehicle id = ${id}`))
  );
  }
  </code></pre>
  
  <p>The console output in .tap() is written. The .handleError() is not hit - this is good as it tells me the service call was successful.</p>
  
  <p>The problem is my component HTML is not populated with the JSON returned from the service call. How do I output the results of the GET request so I can see what I'm actually getting back from the service. I pasted the value of <code>url</code> into Postman and I get the expected results so it's gotta be something in the angular project. I just need to figure out what is wrong and verifying the data from the service seems like a good place to start.</p>
  
  <p>How do I output the results of the GET request to console.log()?</p>