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