title: get the data from the server in Angular5
body: <p>How to get the data from Server using Angular5.
  i want to about Get call in Angular5</p>
  
  <p>i tried this:</p>
  
  <pre><code>getField (): Observable&lt;b_fld[]&gt; {
      return this.http.get&lt;fld[]&gt;(this.fieldUrl)
        .pipe(
          tap(fields =&gt; console.log(`fetched fields`))
        );
       }
  </code></pre>