I am working on a Vue Bootstrap modal placed within a v-for loop. I need to replace the '1' in both 'v-b-modal.modal-1' and 'modal-1' with the index value, which I can access as {{ index }} while looping through the items. However, I am struggling to find a way to dynamically add this index to the end of each identifier.
<div v-for="(movie, index, i) in movies">
<b-button :key="index" :v-b-modal="'modal-' + index">Launch demo modal</b-button>
<b-modal :id="'modal-' + index" title="BootstrapVue">
<p class="my-4">Hello from modal!</p>
</b-modal>
</div>