Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created Jan 27, 2019
Embed
What would you like to do?
<script>
export default {
created () {
this.$bus.$on('userRegistered', (user) => {
console.log(user)
})
},
beforeDestroy(){
this.$bus.$off('userRegistered');
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment