I have some code in Angular 6 to display data, but the code I have tried to implement does not work? My code so far:
TS file
incident = [
{id: 'E200', product: 'MP2355 Black and white', floor: '2', address: '11 Rue', code: '75019'},
];
incidents = this.incident[0];
HTML file
<tr class="" *ngFor="let state of incidents">
<td>{{state.id}}</td>
</tr>
iddoesn't appear to be a property on yourincidentsobject.incidents = this.incident[0];I don't get this, or the rest of the example. There is noidkey in your sample data. Please update your question.