MCPcopy Create free account
hub / github.com/angular/components / getRecursiveData

Method getRecursiveData

src/cdk/tree/tree.spec.ts:1626–1630  ·  view source on GitHub ↗
(nodes: TestData[] = this._dataChange.getValue())

Source from the content-addressed store, hash-verified

1624 }
1625
1626 getRecursiveData(nodes: TestData[] = this._dataChange.getValue()): TestData[] {
1627 return [
1628 ...new Set(nodes.flatMap(parent => [parent, ...this.getRecursiveData(parent.children)])),
1629 ];
1630 }
1631
1632 clear() {
1633 this.data = [];

Callers 1

tree.spec.tsFile · 0.80

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected