Initially I had the following code, when animatedBlock = true it will return animate.
<div class="block" :class="{ animate: animatedBlock }"></div>
Now I want to add a case of type animatedBlock = false which returns animate2, I tried to write like this:
<div
class="block"
:class="{ animatedBlock ? animate : animate2 }"
></div>
But it doesn't work, it returns error: Error parsing JavaScript expression: Unexpected token, expected ","
It seems that it is not understanding the ? what
Hope you guys will help me!