Answer the question
In order to leave comments, you need to log in
How to define multiple dynamic classes?
Hello, I can’t find the answer to my question, there is a task to set two classes at the same time like this:
:class="class + number, classss + number: page === 2"
If I try to check :class="{{ classss + number : page === 2 }}", then it swears at +, I put it in computed, tried to write something like this:
:class="computedClass, class + number" swears at a comma in this case..
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Maybe you should read the documentation ?
Preferably all. Everything is very clear and there is not much text.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question