I had a problem with iterating a json object in Ngfor, there is my template:
:
<h1>Hey</h1> <div>{{ people| json}}</div> <h1>***************************</h1> <ul> <li *ngFor="#person of people"> {{ person.label }} </li> </ul>
people is a json object that I'm trying to repeat, I get the result (people | json) and don't get the list, here is a screenshot:

and to complete, here is the json file part:
{ "actionList": { "count": 35, "list": [ { "Action": { "label": "A1", "HTTPMethod": "POST", "actionType": "indexation", "status": "active", "description": "Ajout d'une transcription dans le lac de donnΓ©es", "resourcePattern": "transcriptions/", "parameters": [ { "Parameter": { "label": "", "description": "Flux JSON Γ indexer", "identifier": "2", "parameterType": "body", "dataType": "json", "requestType": "Action", "processParameter": { "label": "", "description": "Flux JSON Γ indexer", "identifier": "4", "parameterType": "body", "dataType": "json", "requestType": "Process" } } },
please feel free to help me
json angular observable ngfor
Anna
source share