Is there a way to accomplish this in vue:
<button @click="(true) ? funcA : FuncB"> Click </button> In this case, the event is a click, but it could be a keypress, keydown, input and whatever else is on the vuejs docs.
If that's just not possible, what's the best way to accomplish the above without doing code repetition?