[Vuejs]-Vuejs assign existing anonymous object to a property in the data property

1👍

Ok the solution was very simple, i did find the culprit.

let myOptions = {
    chart: {
        height: 350,
        type: 'bar'
    },
    colors: ["#800000"]
};

the myOptions creation was wrong, it should use a = instead of a : to assign the anonymous object.

Leave a comment