MCPcopy
hub / github.com/angular/angular / DeepModule

Class DeepModule

packages/core/test/di/r3_injector_spec.ts:147–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146 let deepModuleCreated: boolean = false;
147 class DeepModule {
148 constructor(eagerService: EagerService) {
149 deepModuleCreated = true;
150 }
151
152 static ɵfac = () => new DeepModule(ɵɵinject(EagerService));
153 static ɵinj = ɵɵdefineInjector({
154 imports: undefined,
155 providers: [
156 EagerService,
157 {
158 provide: DeepService,
159 useFactory: () => {
160 throw new Error('Not overridden!');
161 },
162 },
163 ],
164 });
165
166 static safe() {
167 return {
168 ngModule: DeepModule,
169 providers: [{provide: DeepService}],
170 };
171 }
172 }
173
174 class IntermediateModule {
175 static ɵinj = ɵɵdefineInjector({

Callers

nothing calls this directly

Calls 2

ɵɵinjectFunction · 0.90
ɵɵdefineInjectorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…