Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi

cyrilletuzi/vue.ts

Last active Dec 9, 2017
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