vue-class
v2.0.1
Published
vue class decorator
Downloads
135
Readme
Vue Class
Decorator for building Vue2 & TypeScript2 Component.
Install
npm
npm i vue-class --save
yarn
yarn add vue-class
Usage
app.ts
import render from './app.html';
import { Vue, Component, Watch } from 'vue-class';
@Component({
render,
name: 'app',
props: ['value']
})
class App extends Vue {
value: number;
@Watch('value')
onValueChange(value: number): void {
console.log(value);
}
}