make a vue component global in variable code example
Example: how to create a global variable in vue
// in main =.js
Vue.prototype.$appName = 'My App'
////in components
console.log(this.$appName)
// in main =.js
Vue.prototype.$appName = 'My App'
////in components
console.log(this.$appName)