Aug 29, 2017 · 1 min read
According to the latest Vue docs, vue-resource is deprecated: ‘axios’ is the preferred http lib (although vue-resource still works):
import axios from 'axios'
import VueAxios from 'vue-axios'Vue.use(VueAxios, axios)
According to the latest Vue docs, vue-resource is deprecated: ‘axios’ is the preferred http lib (although vue-resource still works):
import axios from 'axios'
import VueAxios from 'vue-axios'Vue.use(VueAxios, axios)