Here's some context of my problem:
I am coding an app in Angular 6 that is supposed to read data from my localhost:5000 port to get JSON data and display it in the Angular app. The angular app is getting the data from my localhost perfectly, except when the data is gathered then the entire data is an " object Object " and I don't know how to iterate through this type or visualize the collected data. The reason I know that the data is correctly being gathered is that the server that is posting the data is getting 200-success messages.
Here is the data that my angular app is taking in:
{"index":1,"Company":"Google","Hire Date":"1\/4\/16","Title":"Director"
,"Location":"Bay Area, CA","Degree":"Bachelors","Year entered
work force":1994.0,"Offer; Base":"$225,000.00
","Bonus":null,"Latitude":37,"Longitude":-122}
Here is the data model I am fitting the data in Angular:
export interface Exam {
ID: number;
Company: string;
HireDate: string;
Title: string;
Location: string;
Degree: string;
yearEnteredWorkForce: string;
OfferCostNumber: string;
bonus: string;
latitude: number;
longitude: number;
}
Here is the variable that returns as an " object Object "
this.examsList = this.examsApi.getExams()