Last active
October 13, 2018 11:15
-
-
Save senritsu/a742537d424ef93c3c91ff99ed19fdd7 to your computer and use it in GitHub Desktop.
This file contains 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
export default { | |
template: '<div>Hello {{ name }} from remote component</div>', | |
props: {name: String}, | |
created () { this.interval = setInterval(() => console.log(`tick from remote ${this.name}`), 1000) }, | |
beforeDestroy () { clearInterval(this.interval) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment