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

Class Child

packages/router/test/router_preloader.spec.ts:188–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 const CHILD_TOKEN = new InjectionToken<string>('test token for child');
187
188 @NgModule({
189 imports: [RouterModule.forChild([{path: 'child', redirectTo: ''}])],
190 providers: [{provide: CHILD_TOKEN, useValue: 'child'}],
191 })
192 class Child {}
193
194 TestBed.configureTestingModule({
195 providers: [

Callers

nothing calls this directly

Calls 2

NgModuleInterface · 0.90
forChildMethod · 0.45

Tested by

no test coverage detected