I’m a Vue newbie and trying to create a webapp to calculate the income and expenses (budget planner).
I use a component with a loop to create the necessary fields. And below there’s a field where I want to calculate the sum of all fields. But I fail to get it to work. I think because the values don’t get updated. The initial values (in data.js) may be not needed, because in the end the initial values will always be zero (the two current values are for testing).
Here you can see simplified app with the problem:
How can I update the sum, when a value is changed?
Thanks for you help.