This is my dataset
{
"items":[
{
"contentType":"h1",
"items":[
{
"contentType":"b",
"items":[
{
"contentType":"i",
"items":[
],
"id":9
}
],
"id":6
}
],
"id":0
}
]
}
And I want to access the items array which could be recursive.
Generally we use v-for loop. But there I've no idea what should I do in the vue.js template block.
<span v-for="(item1,index) in mainData.items" :key="index">
</span>