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

Function initComponent

packages/core/test/acceptance/change_detection_spec.ts:1778–1784  ·  view source on GitHub ↗
(overrides: {[key: string]: any})

Source from the content-addressed store, hash-verified

1776 }
1777
1778 function initComponent(overrides: {[key: string]: any}): ComponentFixture<MyApp> {
1779 TestBed.configureTestingModule({declarations: [MyApp]});
1780 TestBed.overrideComponent(MyApp, {set: overrides});
1781 const fixture = TestBed.createComponent(MyApp);
1782 fixture.detectChanges();
1783 return fixture;
1784 }
1785
1786 function initWithTemplate(template: string) {
1787 return initComponent({template});

Callers 3

initWithTemplateFunction · 0.70
initWithHostBindingsFunction · 0.70
createComponentMethod · 0.50

Calls 4

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…