Skip to content

Commit

Permalink
Update injection-scopes.md
Browse files Browse the repository at this point in the history
docs: correct injection-scopes/request-scope's example snippet
  • Loading branch information
parmesh-shiroya authored and Romakita committed Mar 10, 2020
1 parent b8db3ff commit 82f4306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/injection-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In this example all request on `/random` endpoint return the same random value.
Request scope will create a new instance of provider for each incoming request. A new container will be created
and attached to the request. It'll contains all provider annotated by `@Scope(ProviderScope.REQUEST)`.

<<< @/docs/docs/snippets/providers/scope-singleton.ts
<<< @/docs/docs/snippets/providers/scope-request.ts

Each request on `/random` will return a different random value.

Expand Down

0 comments on commit 82f4306

Please sign in to comment.