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

Function shimStylesContent

packages/platform-browser/src/dom/dom_renderer.ts:81–83  ·  view source on GitHub ↗
(compId: string, styles: string[])

Source from the content-addressed store, hash-verified

79}
80
81export function shimStylesContent(compId: string, styles: string[]): string[] {
82 return styles.map((s) => s.replace(COMPONENT_REGEX, compId));
83}
84
85/**
86 * Prepends a baseHref to the `sourceMappingURL` within the provided CSS content.

Callers 2

constructorMethod · 0.85
constructorMethod · 0.85

Calls 2

mapMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…