Is there a way to use the previous value of a computed Angular signal?

Discussão em 'Angular' iniciado por Homo Civicus, Abril 3, 2025.

  1. Homo Civicus

    Homo Civicus Guest

    I want to add each new value from signal A to the list value of signal B, similar to what you can do with the scan operator in RxJS. Ideally I'd want something like this: signalB = computed((value) => [...value, signalA()]). Can I somehow do that?

    Continue reading...

Compartilhe esta Página