MCPcopy
hub / github.com/angular/angular / getComponentRef

Function getComponentRef

packages/platform-server/test/hydration_utils.ts:55–57  ·  view source on GitHub ↗
(appRef: ApplicationRef)

Source from the content-addressed store, hash-verified

53export const DEFAULT_DOCUMENT = `<html><head></head><body>${EVENT_DISPATCH_SCRIPT}<app></app></body></html>`;
54
55export function getComponentRef<T>(appRef: ApplicationRef): ComponentRef<T> {
56 return appRef.components[0];
57}
58
59export function stripSsrIntegrityMarker(input: string): string {
60 return input.replace(`<!--${SSR_CONTENT_INTEGRITY_MARKER}-->`, '');

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…