it turns out that I want to perform some operations, but as much as I try I get errors, I hope they can help me. they wanted to perform some operations with 4 inputs
Example
these conditions must be met
`Input 1 Input 2 Input 3 Input 4
1) input3 = input1 / input 2
2) input2 = input1 * input 3
3) input2 = input 4`
currently is what I have
calcularPrecio: function(){
var result=0.0;
for(var i=0;i<this.arrayDetalle.length;i++){
result=result(this.arrayDetalle[i].precio*this.arrayDetalle[i].cantidad1)
}
return result;
},
<input type="number" v-model="calcularPrecio" class="form-control">
<input v-model="detalle.cantidad1" type="number" class="form-control">
I hope you could help me with an example of how I could do it. Thank you so much
input2is dependent oninput4andinput1 * input3, if you're looking to use computed functions. Unless you want the input returned separately, for whichinput2would be two different computed properties.