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

Function mutateProperties

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

Source from the content-addressed store, hash-verified

578 }
579
580 function mutateProperties() {
581 const copiedData = component.dataSource.data.slice();
582 copiedData[0] = new TestData('topping_something_new');
583 copiedData[1] = new TestData('topping_something_new_1');
584 component.dataSource.data = copiedData;
585 fixture.changeDetectorRef.markForCheck();
586 fixture.detectChanges();
587 }
588
589 it('should add/remove/move nodes with reference-based trackBy', () => {
590 createTrackByTestComponent('reference');

Callers 1

tree.spec.tsFile · 0.85

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…