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

Class Service

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

Source from the content-addressed store, hash-verified

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

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