0

image of output with error on console

enter image description here

heres the picture of code where its showing error

enter image description here

Chris Albert
  • 2,462
  • 8
  • 27
  • 31
Bhavik
  • 43
  • 1
  • 7

1 Answers1

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);
  }
}
Amaarockz
  • 4,348
  • 2
  • 9
  • 27