my question is how can I show "show text" in the layout when "more": true is set in my JSON
My Layout:
<b-row v-for="?" v-if="?">
<b-col>
show text
</b-col>
</b-row>
My JSON:
{
"array": [
{
"id": "1",
"more": false
},
{
"id": "2",
"more": true
}
]
}
data () {
return {
n: 0,
array: json
}
}
EDIT: SOLVED IT => v-if="array[0].more"
v-for="foo in array" v-if="foo.more"should do it, I think? If that doesn't work, try thev-ifon the<b-col>.v-for="foo in array.array". It's an odd structure