The array consists of a key and value pair of objects.i want iterate through to fetch key and values of object.
var arr = [{fruit: banana},{color: red},{city: London},{count: 10},{price: 100$}];
i tried using keyvalue pipe
<div class="bx--row" *ngFor="let obj of arr | keyvalue; let i = index;">
<span class="bx--col-xs-5 bx--col-md-5"> {{obj.key}} :</span>
<span class="bx--col-xs-5 bx--col-md-5">{{obj.value}} </span>
</div>
Expected result:
fruit : banana
color: red
city: London
count : 10
price : 100$