vuejs named component code example Example: VUE DECLARE COMPONENT IN MAIN.JS Vue.component('MyComponentName', { /* ... */ })