Skip to content

Commit 71f70b8

Browse files
committed
readme update
1 parent f26ade0 commit 71f70b8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,16 @@ npm install @vueform/toggle
100100

101101
## Usage with Vue 2
102102

103-
When using with Vue 2 make sure to install [@vue/composition-api](https://github.com/vuejs/composition-api#npm) first and change the imported module to:
103+
When using with Vue 2 install [@vue/composition-api](https://github.com/vuejs/composition-api#npm) first:
104+
105+
``` js
106+
import Vue from 'vue'
107+
import VueCompositionAPI from '@vue/composition-api'
108+
109+
Vue.use(VueCompositionAPI)
110+
```
111+
112+
Then make sure to change the imported module to:
104113

105114
``` js
106115
import Toggle from '@vueform/toggle/dist/toggle.vue2.js'

0 commit comments

Comments
 (0)