I have a array in data() :
data() {
return {
list: [],
}
},
methods: {
pushData() {
this.list.push({name:'yorn', age: 20});
}
}
Now I want to push to the 'list' array of the following format, The key is info:
list [
info [
{
name:yorn,
age: 20
}
]
]
I'm new to vuejs and javascript so I need everyone's help. Please give me your opinion. Thanks