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

Method childNodes

packages/core/src/debug/debug_node.ts:292–300  ·  view source on GitHub ↗

* The `childNodes` of the DOM element as a `DebugNode` array. * * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)

()

Source from the content-addressed store, hash-verified

290 * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)
291 */
292 get childNodes(): DebugNode[] {
293 const childNodes = this.nativeNode.childNodes;
294 const children: DebugNode[] = [];
295 for (let i = 0; i < childNodes.length; i++) {
296 const element = childNodes[i];
297 children.push(getDebugNode(element)!);
298 }
299 return children;
300 }
301
302 /**
303 * The immediate `DebugElement` children. Walk the tree by descending through `children`.

Callers

nothing calls this directly

Calls 2

getDebugNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected