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

Class WithLinkedSignal

packages/core/test/acceptance/signal_debug_spec.ts:520–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 const computation = (source: number) => source * 2;
519
520 @Component({template: `{{ linked() }}`})
521 class WithLinkedSignal {
522 source = signal(1, {debugName: 'source'});
523 linked = linkedSignal({
524 source: this.source,
525 computation,
526 debugName: 'linked',
527 });
528 }
529 const fixture = TestBed.createComponent(WithLinkedSignal);
530
531 await fixture.whenStable();

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
signalFunction · 0.90
linkedSignalFunction · 0.90

Tested by

no test coverage detected