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

Function shimHostAttribute

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

Source from the content-addressed store, hash-verified

105}
106
107export function shimHostAttribute(componentShortId: string): string {
108 return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
109}
110
111export function shimStylesContent(compId: string, styles: string[]): string[] {
112 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