MCPcopy
hub / github.com/angular/angular / getContent

Function getContent

packages/private/testing/src/browser_utils.ts:105–111  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

103}
104
105export function getContent(node: Node): Node {
106 if ('content' in node) {
107 return (<any>node).content;
108 } else {
109 return node;
110 }
111}
112
113export function templateAwareRoot(el: Node): any {
114 return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el;

Callers 3

createRootElFunction · 0.90
elFunction · 0.85
templateAwareRootFunction · 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…