Let's say we have a list of JSON object like this one:
data = {
id: 1,
someObjAsString: '{"p1":"a", "p2": "b"}',
...
... other properties
}
Using *ngFor I want to display p2 from someObjAsString:
<div *ngFor="let data of dataList">
{{data.someObjAsString.p2}} <!-- What should I do here to display p2 property of someObjAsString-->
</div
JSON.parse() is definitly not working
Any help would be appreciated.