[Vuejs]-VueJS – nested accordion based on JSON response

0πŸ‘

βœ…

Just use a nested v-for on item.values, and conditionally show it with v-if='item.values':

.card-body
    template(v-for='item in items')
        //...

        ul(v-if='item.values')
            li(v-for='subItem in item.values')
                .wrap {{subItem.value}}

Leave a comment