Rule: use-injectable-provided-in

Enforces classes decorated with @Injectable to use the ‘providedIn’ property.

Rationale

Using the ‘providedIn’ property makes classes decorated with @Injectable tree shakeable.

Notes:
TS Only

Config

Not configurable.

Examples
Schema
null