how to define a global object in vue 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)