Best way to dynamic the html attribut like :id,:class etc. with suffix & prefix string.
Prefix
Use concatenation sign "+" with your prefix string before vue variable into single quote.
Ex.
:id=" 'prefix_string_'+ index "
:class=" 'prefix_string_'+ class "
<div v-for="(tabTitle, index) in tabTitleList">
<span :id="'sp_' + index"> {{tabTitle}} </span>
</div>
Same way for suffix
Use concatenation sign "+" with your suffix string after vue variable into single quote.
Ex.
:id=" index + '_suffix_string' "
:class=" class + '_suffix_string'"
<div v-for="(tabTitle, index) in tabTitleList">
<span :id="index +'_sp'"> {{tabTitle}} </span>
</div>