Skip to content

Instantly share code, notes, and snippets.

@kusa-mochi
Created March 14, 2020 03:58
Show Gist options
  • Save kusa-mochi/9b65358d28ba0583600bef1d0771bbc8 to your computer and use it in GitHub Desktop.
Save kusa-mochi/9b65358d28ba0583600bef1d0771bbc8 to your computer and use it in GitHub Desktop.
export default {
data: () => ({
count: 0
}),
methods: {
increment() {
this.count++;
}
},
computed: {
double () {
return this.count * 2;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment