vue slot events code example
Example 1: vuejs slots events
Check the last comment from here:
https://github.com/vuejs/vue/issues/4332
Example 2: vue slot events
Emit event in slot: this.$parent.$emit(...)
Listen in wrapper/parent: this.$on(...)
Check the last comment from here:
https://github.com/vuejs/vue/issues/4332
Emit event in slot: this.$parent.$emit(...)
Listen in wrapper/parent: this.$on(...)