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

Method applyScope

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_selectorNeedsScopingMethod · 0.95
_applySelectorScopeMethod · 0.95

Tested by

no test coverage detected