Currently, I am working with Vue 2.0-rc.6 and Vue-router 2.0-rc.5, the latest versions available.
I attempted to use this.$emit('custom-event')
in one of my router components and
this.$on('custom-event', () => { console.log('I heard an event') })
in my Vue instance. However, the event was only being heard by the router component and not the Vue instance itself.
Any suggestions on how to fix this issue?
Feel free to check out this jsfiddle for reference.