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

Function shimHostAttribute

packages/platform-browser/src/dom/dom_renderer.ts:77–79  ·  view source on GitHub ↗
(componentShortId: string)

Source from the content-addressed store, hash-verified

75}
76
77export function shimHostAttribute(componentShortId: string): string {
78 return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
79}
80
81export function shimStylesContent(compId: string, styles: string[]): string[] {
82 return styles.map((s) => s.replace(COMPONENT_REGEX, compId));

Callers 1

constructorMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…