Answers for "multiple class ternary expression vue"

1

multiple ternary in vuejs

You can paste it in "" or {{}} (in html or as text/html)

(test1 == 1) ? then1 : (test2 == 2) ? then2 : thenglobal

Test 1 will be cheked and then1 executed if true and same for test 2, it will
repeat until it reaches the end.

You can repeat this ∞
Posted by: Guest on September-13-2021
0

multiple condition class binding vue

<li :class="[{'text-pink-700': isSelected}, {'line-through': isCrossedOff}]">Item Text</li>
Posted by: Guest on July-18-2021

Browse Popular Code Answers by Language