I am trying display my JSON (ARRAY) to html column if I access 1) {{data.pageValue[0].firstName}}
I am getting value but If i tried using 2) {{data.pageValue.firstName}}
without array the value is not working actually I cannot use the 1st code because the column will be dynamic below is my json
"personlDatas": [
{
"objId": 0,
"userId": 0,
"firstName": "jack"
},
{
"objId": 0,
"userId": 1,
"firstName": "Vimal"
},
{
"objId": 0,
"userId": 2,
"firstName": "Suresh"
},
]
Please let me know how to access the object
have you head of
ngFor
?