Looking for assistance with passing the variable tmp_sell to my view. Here is the code:
<p @tmp_sell="getTmpSell" >?</p>
<input ref="q_subtotal" placeholder="Subtotal" @tmp_sell="getTmpSell" id="q_subtotal" />
export default{
props: ['tmp_sell'],
}
This is the component where the variable is needed:
choosenProductSell(ev, p, i){
var tmp_one_sell = parseFloat(d.data().p_sell);
this.tmp_sell = this.tmp_sell + tmp_one_sell;
},
I have declared the variable on both sides, but am struggling with allocating this.tmp_sell
to the input tag q_subtotal
. Any skilled individuals willing to take a look?