please help with .$set data on vue , after read docs of vuejs.org I did not realize what must be index in $set when my data is already null and also syntax I need to write. please provide the syntax need for set data in this specific example. thank you.
//in vue js components:
data() {
return {
columnDefs: null
};
computed: {
onLoadColumns() {
// some logic here (manipulate received props from parent)
// logic bring this [{},{},{}]
// sth = [{},{},{}]
// now want to .$set() , (or maybe $add()) that array to data obj for reactivity.
// what syntax look like? this below didn't work.
this.$set(this.columnsDef, 0, sth);
}