1$nuxt.$emit('my-custom-event') // to emit an event
2
3created() { listen to an event anywhere in the nuxt app
4 this.$nuxt.$on('my-custom-event', () => {
5 //Do Something
6 })
7}
1$nuxt.$emit('my-custom-event')
2
3created() {
4 this.$nuxt.$on('my-custom-event', () => {
5 //Do Something
6 })
7}