Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Improve intelligibility of module.factory note #7022

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/guide/providers.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ on `clientId` service. The factory service then uses NSA-proof encryption to pro
token.

Note: It is a best practice to name the factory functions as "<serviceId>Factory"
(e.g. apiTokenFactory). While this names are not required, they help when navigating the code base
(e.g. apiTokenFactory). While this naming convention is not required, it helps when navigating the code base
or looking at stack traces in the debugger.

Just like with Value recipe, Factory recipe can create a service of any type, whether it be a
Expand Down