$nuxt.$emit layout code example
Example: nuxt emit
$nuxt.$emit('my-custom-event')
created() {
this.$nuxt.$on('my-custom-event', () => {
//Do Something
})
}
$nuxt.$emit('my-custom-event')
created() {
this.$nuxt.$on('my-custom-event', () => {
//Do Something
})
}