Skip to content

Commit 9d08803

Browse files
authored
docs(README): add syntax highlight for code
1 parent fec3fb1 commit 9d08803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ A small wrapper for integrating axios to Vuejs
33

44
## How to install:
55
### CommonJS:
6-
```
6+
```bash
77
npm install --save axios vue-axios
88
```
99

1010
And in your entry file:
11-
```
11+
```js
1212
import Vue from 'vue'
1313
import axios from 'axios'
1414
import VueAxios from 'vue-axios'
@@ -23,7 +23,7 @@ Just add 3 scripts in order: `vue`, `axios` and `vue-axios` to your `document`.
2323
This wrapper bind `axios` to `Vue` or `this` if you're using single file component.
2424

2525
You can `axios` like this:
26-
```
26+
```js
2727
Vue.axios.get(api).then((response) => {
2828
console.log(response.data)
2929
})

0 commit comments

Comments
 (0)