Skip to content

Commit 2d66777

Browse files
committed
add service provider docs
1 parent bc952dc commit 2d66777

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

service-providers.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,16 @@ export class MarkdownServiceProvider extends ServiceProvider {
100100

101101

102102
## Registering Providers
103-
tba.
103+
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.
104+
105+
Add service providers from community packages or your own modules to this list:
106+
107+
```ts
108+
import { MarkdownServiceProvider } from '../app/modules/markdown'
109+
110+
export const providers: ServiceProviderCtor[] = [
111+
// other service providers
112+
113+
MarkdownServiceProvider,
114+
]
115+
```

0 commit comments

Comments
 (0)