How do I correctly display key value pairs using AngularJS?
Here is my HTML:
<ul class="item-property-list">
<li ng-repeat="(key, value) in item.item_properties">
{{key.key}} <strong> {{value.value}}</strong>
</li>
</ul>
Here is the JSON data:
"item_properties":
[
{
"key": "Size",
"value": "S"
},
{
"key": "Color",
"value": "Red"
}
]
Here is the output:
S Red
I would like to have:
Size: S
Color: Red