I want to emit an event on the root component, and listen to in in the root component. In a child of child component I do this:
this.$root.$emit(\'access-tok
I've to use the following approach:
mounted() { this.$nuxt.$emit('event-name') }
mounted() { this.$nuxt.$on('event-name', () => ... } }
Using Nuxt 2.14