Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue js use component everywhere

// main.js
import { createApp } from 'vue'
import App from './App.vue'
import 'YourComponent' from 'YourFileOrLibrary';


const app = createApp(App);

app.component('yourComponent', YourFileOrLibrary);

app.mount('#app');
 
PREVIOUS NEXT
Tagged: #vue #js #component
ADD COMMENT
Topic
Name
6+7 =