I need to compute sum of two values hat placed in my data. But my code working like not summ, but as strings concatination.
How to get it's working with values as with ints:
computed: {
myvalue: function () {
return this.my_dates[0]['2018-03-23']['april'] + this.my_dates[0]['2018-03-23']['may']
}
}
My data property like:
data: {
my_dates:
[
{
"2018-03-23": {
"april": 10,
"may": 9,
...