Last active
November 19, 2018 14:39
-
-
Save hawkeye64/09e5e19afe9ec71ec1ee96f5d05651bd to your computer and use it in GitHub Desktop.
'expand-tree' message on Vue global event bus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
created: function () { | |
this.$root.$on('expand-tree', this.expandTree) | |
}, | |
beforeDestroy: function () { | |
this.$root.$off('expand-tree', this.expandTree) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
done. Thanks!