We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e2b21 commit 4a8e87fCopy full SHA for 4a8e87f
docs/content/en/index.md
@@ -192,8 +192,22 @@ Changes API name from "$vfm" to any other string value. It is useful when you us
192
193
## **API**
194
195
+- In Options API:
196
+
197
Plugin API can be called within any component through `this.$vfm`.
198
199
+- In Composition API:
200
201
+```js
202
+import { inject } from 'vue'
203
204
+export default {
205
+ setup() {
206
+ const $vfm = inject('$vfm')
207
+ }
208
+}
209
+```
210
211
### `$vfm.show(name, params)`
212
213
- Type: `Function`
0 commit comments