1<template>
2 <button v-on:click="hello">Click</button>
3</template>
4
5<script>
6import Vue from 'vue'
7import Component from 'vue-class-component'
8
9@Component
10export default class HelloWorld extends Vue {
11 // Declared as component method
12 hello() {
13 console.log('Hello World!')
14 }
15}
16</script>