Skip to content

Commit c3d0ca9

Browse files
committed
docs: update vue2 useage
1 parent 006bd97 commit c3d0ca9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ NPM:
3434
npm install --save vue-rough-notation
3535
```
3636

37+
To make `vue-rough-notation` work for Vue 2, you need to have `@vue/composition-api` installed:
38+
39+
```shell
40+
npm install --save @vue/composition-api
41+
```
42+
3743
## Usage
3844

3945
### Vue3
@@ -50,8 +56,10 @@ app.use(VueRoughNotation);
5056

5157
```js
5258
import Vue from 'vue';
59+
import VueCompositionAPI from '@vue/composition-api';
5360
import VueRoughNotation from 'vue-rough-notation';
5461

62+
Vue.use(VueCompositionAPI);
5563
Vue.use(VueRoughNotation);
5664
```
5765

0 commit comments

Comments
 (0)