Answers for "how to use if condition in ternery in vue js"

2

ternary vuejs

<!-- ternary operator in vuejs -->

<p>{{data.text != null ? data.text : 'text = null'}}</p>

<!-- Test ? if true : if false -->
Posted by: Guest on August-20-2021

Browse Popular Code Answers by Language