I am trying to display only a key value, in this case "_t1_product_price" from a JSON data array which looks as follows. I know that if I use ngFor keyPipe method in Angular6 it would just loop through all keys and values but that isn't what I am looking for to narrow down to a single object. Hoping someone could guide me out.
meta_data: Array(17)
0: {id: 37609, key: "inline_featured_image", value: "0"}
1: {id: 37610, key: "erp-wc-subscription", value: Array(0)}
2: {id: 37619, key: "_inventory_asset_account", value: ""}
3: {id: 37620, key: "_item_sales", value: "0"}
4: {id: 37621, key: "_sales_account", value: ""}
5: {id: 37622, key: "_tax_on_sales", value: "-1"}
6: {id: 37623, key: "_item_purchase", value: "0"}
7: {id: 37624, key: "_purchase_price", value: ""}
8: {id: 37625, key: "_purchase_account", value: ""}
9: {id: 37626, key: "_tax_on_purchase", value: "-1"}
10: {id: 37627, key: "_cost_price", value: ""}
11: {id: 37628, key: "_sales_description", value: ""}
12: {id: 37629, key: "_purchase_description", value: ""}
13: {id: 37630, key: "_woo_uom_input", value: ""}
14: {id: 37900, key: "_t1_product_price", value: "1"}
15: {id: 37901, key: "_t2_product_price", value: "2"}
16: {id: 37902, key: "_t3_product_price", value: "3"}
And also what can I use as TypeScript to display the view. Currently I am using this method which isn't what I am looking for. Thanks in advance.
<ion-item *ngFor="let item of product.meta_data">
{{item.id}} - {{item.value}}
</ion-item>