Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nuxt emit

$nuxt.$emit('my-custom-event')

created() {
   this.$nuxt.$on('my-custom-event', () => {
     //Do Something
   })
}
Source by aneesshameed.medium.com #
 
PREVIOUS NEXT
Tagged: #nuxt #emit
ADD COMMENT
Topic
Name
5+4 =