0👍
There is neither an attribute called tab nor Index in your code
Define a data section and add those attributes
data() {
return {
tab: null,
Index: null
}
}
Also I don’t see any usage of those variables other than in console.log
.
So if that’s true then no need define the data()
section. You can directly emit the parameter like
methods: {
removeSection(idx) {
this.$emit('remove', idx);
}
}
Source:stackexchange.com