I want to display in a grid (key, value) pairs of a json, but I found no way to do that:
- id= 1
- name= AAA
- surname= BBB
home.ts :
public records:any = {'id': '1', 'name': 'AAA', 'surname': 'BBB'};
pseudo home.html :
<ion-grid *ngFor="let entry[key, value] of records.entries">
<ion-row>
<ion-col>{{entry.key}}</ion-col>
<ion-col>{{entry.value}}</ion-col>
</ion-row>
</ion-grid>
exists here a solution to achieve this, making changes only in html code?