Angular linked signal dependent on two other signals

Discussão em 'Angular' iniciado por Denis, Dezembro 11, 2024.

  1. Denis

    Denis Guest

    In new Angular (19+) can I create linkedSignal that depends on two other signals? In the example

    import { signal, linkedSignal } from '@angular/core';

    const sourceSignal = signal(0);
    const updatedSignal = linkedSignal({
    source: sourceSignal,
    computation: () => sourceSignal() * 5,
    });


    updatedSignal depends on sourceSignal.

    Can I make it dependent on sourceSignal1 and sourceSignal2?

    Continue reading...

Compartilhe esta Página