| 380 | const source = signal(''); |
| 381 | |
| 382 | @Injectable() |
| 383 | class Service { |
| 384 | data = ''; |
| 385 | cdr = inject(ChangeDetectorRef); |
| 386 | effectRef = effect(() => { |
| 387 | if (this.data !== source()) { |
| 388 | this.data = source(); |
| 389 | this.cdr.markForCheck(); |
| 390 | } |
| 391 | }); |
| 392 | } |
| 393 | |
| 394 | @Component({ |
| 395 | changeDetection: ChangeDetectionStrategy.OnPush, |
nothing calls this directly
no test coverage detected
searching dependent graphs…