methods vue class component

Solutions on MaxInterview for methods vue class component by the best coders in the world

showing results for - "methods vue class component"
Philipp
19 Jan 2018
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>
similar questions
queries leading to this page
methods vue class component