Recently embarking on my Vue journey, I'm curious about how to implement a feature where the input data takes a number and displays it in a variable. Additionally, if the number is entered twice, I want to add them up.
<template>
...
</template>
<script>
export default {
data(){
return{
myMoney:null,
dollar:0
}
},
methods:{
addMomey(){
this.myMoney.push(this.myMoney)
}
}
}
I attempted to achieve this functionality but ended up with a direct transfer to a variable instead.