how to create global variable in vue.js methods 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)