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

Class WriteInComputed

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

Source from the content-addressed store, hash-verified

886
887 it('should name the signal when writing within computed', async () => {
888 @Component({
889 selector: 'write-in-computed',
890 template: '{{comp()}}',
891 })
892 class WriteInComputed {
893 sig = signal(0, {debugName: 'count'});
894 comp = computed(() => this.sig.set(1));
895 }
896
897 const fixture = TestBed.createComponent(WriteInComputed);
898

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
signalFunction · 0.90
computedFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected