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

Function templateAwareRoot

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

Source from the content-addressed store, hash-verified

116}
117
118export function templateAwareRoot(el: Node): any {
119 return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el;
120}
121
122export function setCookie(name: string, value: string) {
123 // 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