Is there a way to access properties within objects nested inside multidimensional arrays when using v-for with VueJS?
var arr =[{"fruit": {"fruitName": "apple"}, "vegetable":[{"vegetableName": "carrot" }]}];
I am attempting to display it in the following manner:
<ul v-for="x in arr">
<li>{{ x.fruit.fruitName }}</li>
<li>{{ x.vegetable.vegetableName }}</li>
</ul>
Currently, I am only able to print the fruit name and unable to access the property within the nested array.