Last active
November 20, 2020 14:32
-
-
Save vjandrei/7f1284b0a4673001678a61d04319605e to your computer and use it in GitHub Desktop.
Vue3 axios globalProperties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createApp } from 'vue'; | |
import axios from 'axios'; | |
import MyApp from './App.vue'; | |
const app = createApp(MyApp); | |
app.config.globalProperties.axios = axios; | |
app.mount('#app'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment