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

Method children

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

* The immediate `DebugElement` children. Walk the tree by descending through `children`.

()

Source from the content-addressed store, hash-verified

303 * The immediate `DebugElement` children. Walk the tree by descending through `children`.
304 */
305 get children(): DebugElement[] {
306 const nativeElement = this.nativeElement;
307 if (!nativeElement) return [];
308 const childNodes = nativeElement.children;
309 const children: DebugElement[] = [];
310 for (let i = 0; i < childNodes.length; i++) {
311 const element = childNodes[i];
312 children.push(getDebugNode(element) as DebugElement);
313 }
314 return children;
315 }
316
317 /**
318 * @returns the first `DebugElement` that matches the predicate at any depth in the subtree.

Callers

nothing calls this directly

Calls 2

getDebugNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected