MCPcopy Index your code
hub / github.com/angular/angular / initWithTemplate

Function initWithTemplate

packages/core/test/acceptance/query_spec.ts:3098–3103  ·  view source on GitHub ↗
(compType: Type<any>, template: string)

Source from the content-addressed store, hash-verified

3096});
3097
3098function initWithTemplate(compType: Type<any>, template: string) {
3099 TestBed.overrideComponent(compType, {set: new Component({template})});
3100 const fixture = TestBed.createComponent(compType);
3101 fixture.detectChanges();
3102 return fixture;
3103}
3104
3105@Component({
3106 selector: 'local-ref-query-component',

Callers 1

query_spec.tsFile · 0.70

Calls 3

overrideComponentMethod · 0.65
createComponentMethod · 0.65
detectChangesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…