MCPcopy
hub / github.com/angular/angular / Injectable

Interface Injectable

packages/core/src/di/injectable.ts:82–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 * @publicApi
81 */
82export interface Injectable {
83 /**
84 * Determines which injectors will provide the injectable.
85 *
86 * - `Type<any>` - associates the injectable with an `@NgModule` or other `InjectorType`. This
87 * option is DEPRECATED.
88 * - 'null' : Equivalent to `undefined`. The injectable is not provided in any scope automatically
89 * and must be added to a `providers` array.
90 *
91 * The following options specify that this injectable should be provided in one of the following
92 * injectors:
93 * - 'root' : The application-level injector in most apps.
94 * - 'platform' : A special singleton platform injector shared by all
95 * applications on the page.
96 * - 'any' : Provides a unique instance in each lazy loaded module while all eagerly loaded
97 * modules share one instance. This option is DEPRECATED.
98 *
99 */
100 providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
101}
102
103/**
104 * Injectable decorator and metadata.

Callers 15

sampler.tsFile · 0.90
perflog_metric.tsFile · 0.90
user_metric.tsFile · 0.90
size_validator.tsFile · 0.90
ChildCompClass · 0.90
MockChildCompClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…