Open devSarry opened 7 years ago
+1
Any luck?
+1
nope still nothing. I think the documentation is lacking how we register services
You can use this.$feathers.service('messages')
instead of this.$services.messages
nope still nothing. I think the documentation is lacking how we register services
@dopyoman vue-feathers
works by assigning the services object of the feathers instance as $services
. And as the client doesn't know of any of your remote services, you have to tell your feathers instance about them.
That would be the following code for your initialization:
// your code: create feathers instance
const feathers = Feathers()
.configure(socketio(socket))
.configure(hooks())
.configure(authentication({storage: window.localStorage}))
// new code: register service
feathers.service("messages");
after you've changed the code you can refer to your service as this.$services.messages
from within your Vue component.
Yeah, you have to manually register every service
I've basically just run through the set up and I cant seem to get the services bound to vue. Any suggestions?
Here's my client setup.
Heres the component that is calling it.
Error in browser