I am trying to simply display data from a MySQL database using Angular (5) with a Material table. The code I have compiles successfully, and a table with the column names and pa
The problem is in unit-type.service.ts. It should be:
getAllUnitTypes(): Observable {
return this.http.get(this.unit_types_Url)
.map(response => response.json() as UnitType[]);
}
I missed the fact that there was no data object as part of the returned JSON, so as soon as that was removed all the information was visible and correctly displayed in the table.