How to get current value of signal in Angular?

Discussão em 'Angular' iniciado por AlexElin, Outubro 30, 2024.

  1. AlexElin

    AlexElin Guest

    How to get current value of any signal in Angular?

    E.g. I have the following compoent with a signal and I need to get its current value

    class SomeComponent {
    age = signal<number>(20);

    void foo() {
    // how to get age's current value
    }
    }

    Continue reading...

Compartilhe esta Página