Answers for "methods vue class component"

0

methods vue class component

<template>
  <button v-on:click="hello">Click</button>
</template>

<script>
import Vue from 'vue'
import Component from 'vue-class-component'

@Component
export default class HelloWorld extends Vue {
  // Declared as component method
  hello() {
    console.log('Hello World!')
  }
}
</script>
Posted by: Guest on August-02-2020

Code answers related to "methods vue class component"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language