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

Method _clear

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

Clear the children dataNodes.

()

Source from the content-addressed store, hash-verified

91
92 /** Clear the children dataNodes. */
93 protected _clear(): void {
94 const outlet = this._getNodeOutlet();
95 if (outlet) {
96 outlet.viewContainer.clear();
97 this._dataDiffer.diff([]);
98 }
99 }
100
101 /** Gets the outlet for the current node. */
102 private _getNodeOutlet() {

Callers 1

ngOnDestroyMethod · 0.95

Calls 2

_getNodeOutletMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected