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 02ec3e1 commit 499b581Copy full SHA for 499b581
docs/model-classes.md
@@ -154,6 +154,9 @@ export default {
154
created() {
155
this.$FeathersVuex.api.Todo.on(‘created’, this.handleTodoCreated)
156
},
157
+ destroyed() {
158
+ this.$FeathersVuex.api.Todo.off(‘created’, this.handleTodoCreated)
159
+ },
160
methods: {
161
handleTodoCreated(todo) {
162
console.log(todo)
@@ -164,7 +167,7 @@ export default {
164
167
165
168
Since they have all of the EventEmitter methods, Model classes can be used as a data-layer Event Bus. You can even use custom methods:
166
169
-```
170
+```js
171
const { Todo } = this.$FeathersVuex.api
172
173
Todo.on('custom-event', data => {
0 commit comments