Can this task be achieved using Vue:
<button @click="(true) ? funcA : FuncB">
Click
</button>
In this scenario, the event is a click, however it could also involve keypress, keydown, input or any other events documented in vuejs.
If this isn't feasible, what is the most efficient method to achieve the same result without resorting to repetitive code?