....
<div id="vue-app">
<cart/>
<div>
....
import {createApp} from 'vue';
const app = createApp({
components: {
'cart': () => import('./cart'),
},
data() {
return {};
},
});
app.mount('#vue-app');
<template>
hello!
</template>
export default {
name: "cart",
data() {
return {};
},
}