MCPcopy Index your code
hub / github.com/angular/components / updateChildrenNodes

Method updateChildrenNodes

src/cdk/tree/nested-node.ts:78–90  ·  view source on GitHub ↗

Add children dataNodes to the NodeOutlet

(children?: T[])

Source from the content-addressed store, hash-verified

76
77 /** Add children dataNodes to the NodeOutlet */
78 protected updateChildrenNodes(children?: T[]): void {
79 const outlet = this._getNodeOutlet();
80 if (children) {
81 this._children = children;
82 }
83 if (outlet && this._children) {
84 const viewContainer = outlet.viewContainer;
85 this._tree.renderNodeChanges(this._children, this._dataDiffer, viewContainer, this._data);
86 } else {
87 // Reset the data differ if there's no children nodes displayed
88 this._dataDiffer.diff([]);
89 }
90 }
91
92 /** Clear the children dataNodes. */
93 protected _clear(): void {

Callers 1

ngAfterContentInitMethod · 0.95

Calls 2

_getNodeOutletMethod · 0.95
renderNodeChangesMethod · 0.80

Tested by

no test coverage detected