Skip to content

Instantly share code, notes, and snippets.

@Markvandersteen
Last active June 12, 2019 11:16
Show Gist options
  • Save Markvandersteen/e4ce9b1af3d28808ee48f1a083d73220 to your computer and use it in GitHub Desktop.
Save Markvandersteen/e4ce9b1af3d28808ee48f1a083d73220 to your computer and use it in GitHub Desktop.
one way data flow vue props and data
props: ['initialCounter'],
data: function () {
return {
counter: this.initialCounter
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment