MCPcopy Index your code
hub / github.com/angular/angular / Service

Class Service

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

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

InjectableInterface · 0.90
injectFunction · 0.90
effectFunction · 0.90
sourceFunction · 0.85
markForCheckMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…