0👍
Try to add axios
as instance global property instead of Vue.use(axios);
:
Vue.prototype.$axios=axios
then you could use it in any child component like this.$axios.get()
learn more about adding-instance-properties
- [Vuejs]-VueJS not reference NestJS ServeRoot Base path
- [Vuejs]-Wrapping dynamically added child elements in my slot
Source:stackexchange.com