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

Function templateAwareRoot

packages/private/testing/src/browser_utils.ts:113–115  ·  view source on GitHub ↗
(el: Node)

Source from the content-addressed store, hash-verified

111}
112
113export function templateAwareRoot(el: Node): any {
114 return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el;
115}
116
117export function setCookie(name: string, value: string) {
118 // document.cookie is magical, assigning into it assigns/overrides one cookie value, but does

Callers 1

stringifyElementFunction · 0.85

Calls 3

getDOMFunction · 0.85
getContentFunction · 0.85
isElementNodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…