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

Method addData

src/material/table/table.spec.ts:646–657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644 disconnect() {}
645
646 addData() {
647 const nextIndex = this.data.length + 1;
648
649 let copiedData = this.data.slice();
650 copiedData.push({
651 a: `a_${nextIndex}`,
652 b: `b_${nextIndex}`,
653 c: `c_${nextIndex}`,
654 });
655
656 this.data = copiedData;
657 }
658}
659
660@Component({

Callers 5

constructorMethod · 0.95
table.spec.tsFile · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected