Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Last active December 9, 2017 11:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
template: '<button @click="onClick">Click!</button>'
})
export default class MyComponent extends Vue {
message = 'Hello!'
onClick () {
console.log(this.message)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment