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

Function compileStyles

packages/compiler/src/render3/view/compiler.ts:628–633  ·  view source on GitHub ↗
(styles: string[], selector: string, hostSelector: string)

Source from the content-addressed store, hash-verified

626}
627
628function compileStyles(styles: string[], selector: string, hostSelector: string): string[] {
629 const shadowCss = new ShadowCss();
630 return styles.map((style) => {
631 return shadowCss!.shimCssText(style, selector, hostSelector);
632 });
633}
634
635/**
636 * Encapsulates a CSS stylesheet with emulated view encapsulation.

Callers 1

Calls 2

mapMethod · 0.80
shimCssTextMethod · 0.80

Tested by

no test coverage detected