I have a component which render elements. The width of each element depends on minimized value (true or false). I need conditional style binding without class here.
I tried:
{ conversation.minimized == false ? right: $index * 285 + 'px' : right: $index * 150 + 'px' }
but it didn't work and i got errors.
v-bind:style="{ right: conversation.minimized ? $index * 150 + 'px' : $index * 285 + 'px' }"