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

Function renderComponent

packages/forms/signals/test/web/dynamic_binding.spec.ts:221–226  ·  view source on GitHub ↗
(componentRef: ComponentRef<T>)

Source from the content-addressed store, hash-verified

219});
220
221async function renderComponent<T>(componentRef: ComponentRef<T>): Promise<ApplicationRef> {
222 const appRef = TestBed.inject(ApplicationRef);
223 appRef.attachView(componentRef.hostView);
224 await appRef.whenStable();
225 return appRef;
226}

Callers 1

Calls 3

attachViewMethod · 0.80
injectMethod · 0.65
whenStableMethod · 0.65

Tested by

no test coverage detected