can-connect-feathers
Version:
Feathers client library for DoneJS and can-connect
25 lines (17 loc) • 779 B
Markdown
{FeathersService} can-connect-feathers/service/service.options.feathersService feathersService
can-connect-feathers/service/service.options
{FeathersService}
Specifies a [FeathersClient](https://docs.feathersjs.com/api/client.html) Service instance to use for the data connection. See the [can-connect-feathers] page for an example Feathers Client configuration.
```js
// Bring in the feathersClient instance and setup a service.
import feathersClient from "./feathers";
const todoService = feathersClient.service( "/api/todos" );
connect( [
feathersService,
realtime
], {
// Pass the service as the `feathersService` property
feathersService: todoService
} );
```
See [can-connect-feathers/service/service] for a complete Todo Model example.