Answers for "ternary in computed vue"

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