Difference between this.$parent.$emit and this.$emit

Viewed 9210

When we need a custom component to emit an event in VueTable2, we must use:

this.$parent.$emit('myCustomEvent')

// instead of
this.$emit('myCustomEvent')

This thread tells us more about this aspect.

I used to run this.$emit() when I had to trigger an event. I was wondering what are the main differences between the two of them?

1 Answers
Related