As a newcomer to Angular5 with TypeScript, I am trying to figure out how to display data from my JSON. I have an API that was created using Java. I have created a JSON Mapper in my Angular code like this :
The JSON generated from my Java application looks like this :
[
{
"type": "SERVICE",
"nom": "aide-services",
"equipes": [
{
"nom": "IKKI"
}
],
"serveurs": [
{
"id": 2,
"nom": "vtcint2",
"ip": "10.10.25.45",
"indicateurs": {
"BUILDDATE": "2018-01-03T06:02:05Z",
"STATUS": "OK",
"VERSION": "2.2.0-SNAPSHOT"
}
}
]
In my current setup, I can only display the type and name of applications like this :
{{app.type}} {{app.nom}}
However, when I attempt to display data from servers for example, I encounter difficulty:
{{app.serveurs}}
In the HTML, it shows as [Object object]
. How can I resolve this issue?
Thank you in advance.