File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,32 @@ A small wrapper for integrating axios to Vuejs
55
66| VueJS \ VueAxios| 1.x| 2.x| 3.x|
77| -| -| -| -|
8- | 1.x| ✔ ; | ✔ ; | ❌ ; |
9- | 2.x| ✔ ; | ✔ ; | ❌ ; |
10- | 3.x| ❌ ; | ❌ ; | ✔ ; |
8+ | 1.x| ✔ ; | ✔ ; | ✔ ; |
9+ | 2.x| ✔ ; | ✔ ; | ✔ ; |
10+ | 3.x| ✔ ; | ✔ ; | ✔ ; |
1111
1212## How to install:
1313### ES6 Module:
1414``` bash
1515npm install --save axios vue-axios
1616```
17-
18- And in your entry file:
17+ Import libraries in entry file:
1918``` js
2019import Vue from ' vue'
2120import axios from ' axios'
2221import VueAxios from ' vue-axios'
22+ ```
23+
24+ Usage in Vue 2:
25+ ``` js
26+ Vue .use (VueAxios, axios)
27+ ```
2328
29+ Usage in Vue 3:
30+ ``` js
2431const app = Vue .createApp (... )
2532app .use (VueAxios, axios)
33+ app .mount (' #app' )
2634```
2735
2836### Script:
You can’t perform that action at this time.
0 commit comments