How to properly pass $index in bootstrap data target v-for?

Viewed 8761

i created dynamic ids using v-for index, the problem is when i'm trying to use bootstrap's data-target to link the div

THIS don't work

<button data-toggle="collapse" data-target="'#demo'+{{$index}}">EXPAND</button> 

            <br/>
            <div v-bind:id="['demo'+index]" class="collapse">
                {{service.sotto[index]}}
            </div>

so how to properly use data-target + index ?

1 Answers
Related