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

Function mutateData

src/cdk/tree/tree.spec.ts:565–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 }
564
565 function mutateData() {
566 // Swap first and second data in data array
567 const copiedData = component.dataSource.data.slice();
568 const temp = copiedData[0];
569 copiedData[0] = copiedData[1];
570 copiedData[1] = temp;
571
572 // Remove the third element
573 copiedData.splice(2, 1);
574
575 // Add new data
576 component.dataSource.data = copiedData;
577 component.dataSource.addData();
578 }
579
580 function mutateProperties() {
581 const copiedData = component.dataSource.data.slice();

Callers 1

tree.spec.tsFile · 0.70

Calls 1

addDataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…