MCPcopy Index your code
hub / github.com/angular/components / _restoreSelector

Function _restoreSelector

src/cdk/testing/component-harness.ts:782–784  ·  view source on GitHub ↗

Restores a selector whose content was escaped in `_splitAndEscapeSelector`.

(selector: string, placeholders: string[])

Source from the content-addressed store, hash-verified

780
781/** Restores a selector whose content was escaped in `_splitAndEscapeSelector`. */
782function _restoreSelector(selector: string, placeholders: string[]): string {
783 return selector.replace(/__cdkPlaceholder-(\d+)__/g, (_, index) => placeholders[+index]);
784}

Callers 1

getSelectorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…