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

Method createComponent

packages/core/testing/src/test_bed.ts:434–439  ·  view source on GitHub ↗
(
    component: Type<T>,
    options?: TestComponentOptions,
  )

Source from the content-addressed store, hash-verified

432 }
433
434 static createComponent<T>(
435 component: Type<T>,
436 options?: TestComponentOptions,
437 ): ComponentFixture<T> {
438 return TestBedImpl.INSTANCE.createComponent(component, options);
439 }
440
441 static createDirective<T>(
442 directive: Type<T>,

Callers

nothing calls this directly

Calls 8

injectMethod · 0.95
getAsyncClassMetadataFnFunction · 0.85
getComponentDefFunction · 0.70
createComponentMethod · 0.65
runMethod · 0.65
stringifyFunction · 0.50
initFunction · 0.50

Tested by

no test coverage detected