I am successfully fetching api in vue but how to properly render it? "undefined id of null" is what I get in console error
this is the axios call I made
axios.getOrder(id).then(response => {
this.cart_content = response.data
console.log(this.cart_content)
})
this is how I'm trying to render in in vue
<div v-if="cart_content">
<ul v-for="i in cart_content" :key="i.id">
<li>
<p>{{i.name}}</p>
<p>{{i.items.quantity}}</p>
<p>{{i.items.unit_price}}</p>
</li>
</ul>
</div>
the API is available when I console.log, it looks something like this.
id:'',
data:array[1]
the "data array" is where the details I need, can anyone tell me how to get these data.