I have a button named continue, what I want to do is on clicking I want to check a condition if isUpgrade is true or not. If its true it has to execute proceedToPayment = true and if its false the other one validateSite() - (need to call a method).
<button type="button" class="btn btn-info" @click="isUpgrade ? proceedToPayment = true : validateSite()">Continue</button>
The above code is not working. Is this really possible? If it is where have I got it wrong?
I have referred to this Stack Overflow Question - Conditional @click with a method in vuejs but I'am not really getting the answer to it.