1// in main =.js
2Vue.prototype.$appName = 'My App'
3
4////in components
5 console.log(this.$appName)
6
1import Axios from 'axios'
2
3// set global axios like this
4Vue.prototype.$axios = Axios;
5
6// call axios like this
7this.$axios.get('https://jsonplaceholder.typicode.com/todos/1')