MCPcopy Create free account
hub / github.com/angular/angular / TestComponent

Class TestComponent

packages/core/test/di/inject_async/inject_async_spec.ts:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 @Component({template: ''})
132 class TestComponent {
133 service = injectAsync(() => Promise.resolve(RootService))();
134 }
135
136 TestBed.configureTestingModule({imports: [TestComponent]});
137

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
injectAsyncFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected