I am currently utilizing Bootstrap Vue for UI and attempting to implement a collapsing feature using this provided link
For instance, using v-b-toggle.collapse-2
where the 2
represents a static id. However, I am interested in dynamically assigning this id based on a specific DB record, like the DB id. Here is an example of what I am trying to achieve:
<h3 v-b-toggle.collapse-{{data.id}}>Show</h3>
Unfortunately, when I try to use {{data.id}}
inside the h3
tag, it does not compile and displays exactly as {{data.id}}
. How can I successfully incorporate the variable data.id
into the h3
tag?
Thank you