Categories
Use string in v-bind:class?
Hello, can I use C no problem, but the name of the button I have depends on the variable... v-bind:class="{'button__' + buttonName}"v-bind:class="{button__accept}"
v-bind:class="{'button__' + buttonName}"
v-bind:class="{button__accept}"
Answer the question
In order to leave comments, you need to log in
Can :class="`button_${buttonName}`"
:class="`button_${buttonName}`"
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question