OK, I have this
{ "calledCust": { "no": 270, "yes": 9 }, "hasOpened": { "no": 254, "yes": 25 } }
and I have been trying this to display in the view.
<ul *ngFor="let profile of profiles.counts">
<li>
{{profile | json}}
</li>
</ul>
because it is not a json array, angular just blows up with
Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.
and I really want to display the results as below.
- calledCust YES:9
- hasOpened YES:25
Many thanks
EDIT
here is the full json
{
total_rows: 279,
bookmark: "g2wAAAABaANkAB5kYmNvcmVAZGI0LnBvcnRlci5jbG91ZGFudC5uZXRsAAAAAmEAYj____9qaAJGQAnZi4AAAABiAAAB7mo",
rows: [],
counts: {
calledCust: {
no: 270,
yes: 9
},
hasOpened: {
no: 254,
yes: 25
}
}
}