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

Function initComponent

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

Source from the content-addressed store, hash-verified

1750 }
1751
1752 function initComponent(overrides: {[key: string]: any}): ComponentFixture<MyApp> {
1753 TestBed.configureTestingModule({declarations: [MyApp]});
1754 TestBed.overrideComponent(MyApp, {set: overrides});
1755 const fixture = TestBed.createComponent(MyApp);
1756 fixture.detectChanges();
1757 return fixture;
1758 }
1759
1760 function initWithTemplate(template: string) {
1761 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