MCPcopy
hub / github.com/angular/angular / setVal

Method setVal

packages/core/test/change_detection_scheduler_spec.ts:116–119  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

114 cdr = inject(ChangeDetectorRef);
115 val = 'initial';
116 setVal(val: string) {
117 this.val = val;
118 this.cdr.markForCheck();
119 }
120 }
121
122 const fixture = await createFixture(TestComponent);

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected