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