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

Class Service

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

Source from the content-addressed store, hash-verified

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],

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