MCPcopy Create free account
hub / github.com/angular/angular / setVal

Method setVal

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

Source from the content-addressed store, hash-verified

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

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected