vue-single-file-component-to-js-compiler
v1.0.2
Published
Compile Vue singne file components to JS format
Downloads
33
Maintainers
Readme
vue-single-file-component-to-js-compiler
Converts Vue single component file:
<template>
<div>{{ text }}</div>
</template>
<script>
export default {
data: function() {
return {
text: "Example"
};
},
methods: {}
};
</script>
Into Vue component declaration in JS:
Vue.component('test-component', {
data: function () {
return {
text: "Example"
};
},
methods: {},
template: `
<div>{{ text }}</div>
`
});