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

Method addData

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

Source from the content-addressed store, hash-verified

638 disconnect() {}
639
640 addData() {
641 const nextIndex = this.data.length + 1;
642
643 let copiedData = this.data.slice();
644 copiedData.push({
645 a: `a_${nextIndex}`,
646 b: `b_${nextIndex}`,
647 c: `c_${nextIndex}`,
648 });
649
650 this.data = copiedData;
651 }
652}
653
654@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