The user can input two values, and depending on what operator he selects the two values will either add to each other, subtract, divide or multiply with each other.
For example: user enters 45 and 32. If he selects the + operator, the result will be 77. If he then switch to * operator the result will be 1440.
Is this possible to do in a simple way, or I have to use v-if or something like that, and go through each one of them separately?
<select v-model="operator">
<option value="+">+</option>
<option value="-">-</option>
<option value="*">*</option>
<option value="/">/</option>
</select>