0
Try to defined a default value for your myData
array, like this
props: {
myData: {
default: [],
type: Array,
},
},
By the way props are used to pass data from parent to child, I don’t think this is the best way to do this.
- [Vuejs]-Vuetify v-select input element does not hold any value
- [Vuejs]-Vue/AXIOS does not completely download
0
myDataCol1,2,3 should be computed properties :
props: {
myData: {
default: [],
type: Array,
},
},
computed: {
myDataCol1(){
return this.myData.slice(0, this.myData.length/3)
}
.
.
.
}
Source:stackexchange.com