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

Class TestCmp

packages/core/test/render3/reactivity_spec.ts:351–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350 const source = signal('');
351 @Component({
352 template: '{{ data }}',
353 })
354 class TestCmp {
355 cdr = inject(ChangeDetectorRef);
356 data = '';
357 effectRef = effect(() => {
358 if (this.data !== source()) {
359 this.data = source();
360 this.cdr.markForCheck();
361 }
362 });
363 }
364
365 const fix = TestBed.createComponent(TestCmp);
366 await fix.whenStable();

Callers

nothing calls this directly

Calls 8

ComponentInterface · 0.90
injectFunction · 0.90
effectFunction · 0.90
signalFunction · 0.90
InputInterface · 0.90
sourceFunction · 0.85
markForCheckMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected