2👍
If you don’t need to remove the element from the DOM and the condition is simply to toggle some text – you could just use a ternary operator. See below
<h1 v-text="2 === 1 ? 'Yes' : 'No'" />
Source:stackexchange.com
2👍
If you don’t need to remove the element from the DOM and the condition is simply to toggle some text – you could just use a ternary operator. See below
<h1 v-text="2 === 1 ? 'Yes' : 'No'" />