vue-ts-component
v0.0.5
Published
TypeScript class decorator can scoped css for Vue component.
Downloads
13
Maintainers
Readme
vue-ts-component
TypeScript class decorator can scoped css for Vue component.
install
// npm
$ npm i -s vue-ts-component
// yarn
yarn add vue-ts-component
Example: vue-ts-componnet
import Vue from 'vue';
import Component from 'vue-ts-component';
@Component({
name: 'HelloWorld',
template: require('./HelloWorld.html'),
style: require('./HelloWorld.scss'),
scoped: true // open scoped for css
})
export default class HelloWorld extends Vue {
public msg = 'Welcome to Your Vue.js App.';
}
Other
Detail: vue-class-component