Here is the commonJS format:
Vue.Component('custom-component',{
template : '<p>Some template</p>',
data : {}
methods : {}
});
And here is the .vue format:
<template>
<p>Some template</p>
</template>
<script>
export default {
data() {
return {};
},
methods : {}
}
</script>
<style>
</style>
I am curious, is it possible to have a project with a mix of components written in commonJS format and .vue format? And if so, how can you import one type of component into the other?