Reviewing the code snippet I currently have:
<template>
<div>
<input v-model.number="money">
<p>{{ money }}</p>
</div>
</template>
<script>
name: 'MyComponent',
data () {
return {
money: 0
}
}
</script>
Upon modifying the value of money
in the data section after retrieving the input value, how can I retrieve the original input value? Is this approach recommended or should I store the input value in a separate variable?