How to conditionally bind to attributes in vue?
the v-bind directive:
Something like this given below:
<img :src=" status = true ? 'open.svg' : 'close.svg'">
In angular this is possible. I just wanted to know whether this is possible in vue.
Or is there a way to write javascript code like the one above in the template itself (ternary ops)?
computedproperty instead of sticking this expression into the template.