I have a JSON object with this aspect:
I would like to be able to perform a binding for the key value, that is, to be able to do array.company (and to show the content of value for example: "Anonymous 3 Company S.A"). Is this possible? I have only managed to print the whole object at once:
<div *ngFor="let sa of serverAttributes">
{{ sa.key}}
{{sa.value}}
</div>
This is my .ts file:
this.subscriptions = this.cbank.getAssetServerAttributes(this.localCustomer, data[indexx]).subscribe(vres => {
this.serverAttributes.push(vres[indexx]);
indexx++;
});
Thank you very much!