baggrek-vue-multiple-component
v1.0.2
Published
## Project setup ``` npm i baggrek-vue-multiple-component ```
Downloads
13
Readme
Sample component
Project setup
npm i baggrek-vue-multiple-component
how to use
import as single
import { BaseCardComponent } from 'baggrek-vue-multiple-component';
export default {
name: 'HomeView',
components: {
BaseCardComponent
}
}
import as global component
import { createApp } from 'vue';
import App from './App.vue';
import { BaseCardComponent, KelasComponent } from 'baggrek-vue-multiple-component';
createApp(App)
.component('base-card-component', BaseCardComponent)
.component('kelas-component', KelasComponent)
.mount('#app');