Registering vue components globally
This is easy to accomplish. You can register components globally in the main.js file. import MyComponent from ‘@/components/MyComponent’ Vue.component(‘my-component-name’, MyComponent) Now you can use <my-component-name /> everywhere. A cleaner way, without bloating your main.js, is to import your component in an index.js file in your components folder like this. import Vue from ‘vue’ import MyComponent … Read more