title: Angular get specific field data from api
body: <p>I'm getting data from an API call with this code:<br></p>
  <pre><code>this.http.get(this.url).subscribe((res: any) =&gt; {
     this.myData = res['data'];
  }
  </code></pre>
  <p>It's returning the data, but here I need a specific field &quot;Name&quot; in my component file. How can I get that single field from all the records.<br>
  I've tried this <br></p>
  <pre><code>this.myData  = res['data'].name;
  </code></pre>
  <p>and this<br>
  <code>this.myData = res.data[0].name;</code> (this return only the first one)</p>