Answer the question
In order to leave comments, you need to log in
What's wrong with v-bind?
<div @click="handleClick" :class="class" class="button-wrapper">
computed: {
class() {
return {
"button-red": this.color === "red",
"button-gray": this.color === "gray"
};
}
}
:class="class"
:[vue/valid-v-bind]
'v-bind' directives require an attribute value.
[vue/no-parsing-error]
Parsing error: Unexpected end of expression.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question