HttpClient not running constructor
I'm fetching an object from a json endpoint using the HttpClient. After I fetch it and subscribe to the observable, I found that the constructor doesn't run on the model and the public methods on the object are all undefined. How do I get the constructor to run and the methods are available? export class Customer { constructor() { this.Addresses = new Array<Address>(); } public Addresses: Array<Address>; public addAddress(address: Address) void{ this.Addresses.push(address); } } var url: string = `${this.urlBase}api/customer/${id}`; var customerObservable: Observable<Customer> = this.authHttp