I want to get data stored in template_A that is col_1 and col_2 and print in table format, but i am getting [object,object]. I don't know how to get data stored as array of object.
I want to print next to template_A. You can have a look at array in console.
{
"_id": {
"$oid": "611f354944c4571778df456c"
},
"assignmentId": "61235a452a8a2428a43514ed",
"studentId": "60dafc5c0254f7122e9fe7f0",
"assignmentOf": "subject",
"createdAt": {
"$date": "2021-08-20T04:53:29.717Z"
},
"updateAt": {
"$date": "2021-08-20T04:53:29.717Z"
},
"__v": 0,
"grade": "b ",
"remark": "good",
"template": "template_A",
"template_A": {
"col_1": "col_1",
"col_2": "col_2"
},
"template_B": {
"col_1": "col_1",
"col_2": "col_2"
}
}
Angular app
<table>
<tr >
<td>{{ singleAssignment.template }}</td>
<td>{{ singleAssignment.template_A[0] }}</td>
<!-- <td>{{ singleAssignment.template_A[0] }}</td> -->
</tr>
</table>



