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

Method applyScope

packages/compiler/src/shadow_css.ts:674–685  ·  view source on GitHub ↗
(shallowPart: string)

Source from the content-addressed store, hash-verified

672 .map((deepParts) => {
673 const [shallowPart, ...otherParts] = deepParts;
674 const applyScope = (shallowPart: string) => {
675 if (this._selectorNeedsScoping(shallowPart, scopeSelector)) {
676 return this._applySelectorScope({
677 selector: shallowPart,
678 scopeSelector,
679 hostSelector,
680 isParentSelector,
681 });
682 } else {
683 return shallowPart;
684 }
685 };
686 return [applyScope(shallowPart), ...otherParts].join(' ');
687 })
688 .join(', ');

Callers

nothing calls this directly

Calls 2

_selectorNeedsScopingMethod · 0.95
_applySelectorScopeMethod · 0.95

Tested by

no test coverage detected