I just connected the second input box to v-model of changedPrice.c1
Currently, it is set to display roundFee as $5000. However, the second input box allows for new input numbers.
In this scenario, I am unsure which method to use. Should I go with computed? or @change? Can someone please provide me with a comprehensive answer? Thank you in advance to anyone who can assist me.
script
data() {
return {
roundFee : 5000,
changedPrice: {
c1: 0,
c2: 0,
}
}
}
vue.js
<input type="text" class="form-control" disabled v-model="roundFee"> $
<input type="text" class="form-control" v-model="changedPrice.c1"> $