(node: Node)
| 103 | } |
| 104 | |
| 105 | export function getContent(node: Node): Node { |
| 106 | if ('content' in node) { |
| 107 | return (<any>node).content; |
| 108 | } else { |
| 109 | return node; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | export function templateAwareRoot(el: Node): any { |
| 114 | return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el; |
no outgoing calls
no test coverage detected
searching dependent graphs…