You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/vue-plugin.md
+39-12Lines changed: 39 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,43 @@
2
2
title: Vue Plugin
3
3
---
4
4
5
-
This `feathers-vuex` release includes a Vue plugin which gives all of your components easy access to the exciting new Models feature. It also automatically registers the `feathers-vuex-data` component. You can pass `components: false` in the options to not globally register the component. Here's how to use the plugin:
5
+
# The Vue Plugin
6
+
7
+
This `feathers-vuex` release includes a Vue plugin which gives all of your components easy access to the data modeling classes. It also automatically registers the included components. The below example is based on the [setup instructions in the API overview](/api-overview.html#setup).
Now, in your components, you'll have access to the `this.$FeathersVuex` object, which contains references to the Model classes, keyed by name. The name of the model class is automatically inflected to singular, initial caps, based on the last section of the service path (split by `/`). Here are some examples of what this looks like:
39
+
## Using the Vue Plugin
40
+
41
+
Once registered, you'll have access to the `this.$FeathersVuex` object, which contains references to the Model classes, keyed by name. The name of the model class is automatically inflected to singular, initial caps, based on the last section of the service path (split by `/`). Here are some examples of what this looks like:
0 commit comments