vve-vue-axios
A small wrapper for integrating axios to Vuejs
How to install:
CommonJS:
npm install --save axios vve-vue-axios
And in your entry file:
Vue
Script:
Just add 3 scripts in order: vue
, axios
and vve-vue-axios
to your document
.
Usage:
This wrapper bind axios
to Vue
or this
if you're using single file component.
You can use axios
like this:
Vueaxios Vue$axios thisaxios this$axios this$http
Please kindly check full documention of axios too