how to create a global methods in vuejs 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)