MCPcopy
hub / github.com/angular/components / addData

Method addData

src/cdk/tree/tree-with-tree-control.spec.ts:1335–1344  ·  view source on GitHub ↗
(level: number = 1)

Source from the content-addressed store, hash-verified

1333 }
1334
1335 addData(level: number = 1) {
1336 const nextIndex = ++this.dataIndex;
1337
1338 let copiedData = this.data.slice();
1339 copiedData.push(
1340 new TestData(`topping_${nextIndex}`, `cheese_${nextIndex}`, `base_${nextIndex}`, level),
1341 );
1342
1343 this.data = copiedData;
1344 }
1345}
1346
1347function getNodes(treeElement: Element): HTMLElement[] {

Callers 3

constructorMethod · 0.95
mutateDataFunction · 0.45

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected