Skip to content

Instantly share code, notes, and snippets.

@senritsu
Last active October 13, 2018 11:15
Show Gist options
  • Save senritsu/a742537d424ef93c3c91ff99ed19fdd7 to your computer and use it in GitHub Desktop.
Save senritsu/a742537d424ef93c3c91ff99ed19fdd7 to your computer and use it in GitHub Desktop.
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