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

Function getContent

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

Source from the content-addressed store, hash-verified

108}
109
110export function getContent(node: Node): Node {
111 if ('content' in node) {
112 return (<any>node).content;
113 } else {
114 return node;
115 }
116}
117
118export function templateAwareRoot(el: Node): any {
119 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