Skip to content

Commit ee16c65

Browse files
committed
Update README.md
1 parent 87a157a commit ee16c65

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1515
npm install --save axios vue-axios
1616
```
17-
18-
And in your entry file:
17+
Import libraries in entry file:
1918
```js
2019
import Vue from 'vue'
2120
import axios from 'axios'
2221
import 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
2431
const app = Vue.createApp(...)
2532
app.use(VueAxios, axios)
33+
app.mount('#app')
2634
```
2735

2836
### Script:

0 commit comments

Comments
 (0)