Skip to content

Commit

Permalink
add service provider docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Jan 24, 2022
1 parent bc952dc commit 2d66777
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion service-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,16 @@ export class MarkdownServiceProvider extends ServiceProvider {


## Registering Providers
tba.
All service providers are registered through the `bootstrap/providers.ts` file. This file must export a `providers` property. The value of this property is an array of service providers. You’ll find a handful of default service providers, for example the route service provider.

Add service providers from community packages or your own modules to this list:

```ts
import { MarkdownServiceProvider } from '../app/modules/markdown'

export const providers: ServiceProviderCtor[] = [
// other service providers

MarkdownServiceProvider,
]
```

0 comments on commit 2d66777

Please sign in to comment.