vuejs add event listener to slot code example
Example: vue slot events
Emit event in slot: this.$parent.$emit(...)
Listen in wrapper/parent: this.$on(...)
Emit event in slot: this.$parent.$emit(...)
Listen in wrapper/parent: this.$on(...)