title: angular 7 - http get returns empty
body: <p>I am trying to create my project from scratch in ASP.NET CORE with Angular (SPA template). I've created a basic API &amp; form but unable to fetch the data while I am receiving the data in Network -> Response. Here's my code</p>
  
  <p>API Controller</p>
  
  <pre><code>[HttpGet]
  public IActionResult Get()
  {
          var res = Json(UsersBAL.GetAll());
          return res;
  }
  </code></pre>
  
  <p>Angular Component</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { UsersService } from '../../Services/users.service';
  @Component({
    selector: 'app-vehicle-form',
    templateUrl: './vehicle-form.component.html',
    styleUrls: ['./vehicle-form.component.css']
  })
  export class VehicleFormComponent implements OnInit {
    users: any;
    constructor(private usersService: UsersService) { }
    ngOnInit() {
  this.usersService.getUsers().subscribe((data: any) =&gt; {
    this.users = data;
    console.log("Users : ",data);
   },
    error =&gt; {
      console.log(error)
    })
  //console.log("Users : ",this.users);
   }
  }
  </code></pre>
  
  <p>Angular Service</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { HttpClient, HttpHeaders } from '@angular/common/http';
  import { Observable, of } from 'rxjs';
  import { catchError, map, tap } from 'rxjs/operators';
  @Injectable({
    providedIn: 'root'
  })
  export class UsersService {
    api_url = 'http://localhost:58508/api/';
    constructor(private http: HttpClient) { }
    getUsers() {
  return this.http.get(this.api_url + 'Users')
  .pipe(map((response: any) =&gt; response.json()))
  .pipe(
    tap(_ =&gt; console.log('fetched users')),
  catchError(this.handleError('getusers', []))
  );
  }
    private handleError&lt;T&gt; (operation = 'operation', result?: T) {
  return (error: any): Observable&lt;T&gt; =&gt; {
  
    // TODO: send the error to remote logging infrastructure
    console.error(error); // log to console instead
  
    // TODO: better job of transforming error for user consumption
    console.log(`${operation} failed: ${error.message}`);
  
    // Let the app keep running by returning an empty result.
    return of(result as T);
  };
    }
  }
  </code></pre>