Indexing nested functions inside a javascript function?

Discussão em 'Angular' iniciado por Ole, Fevereiro 12, 2025.

  1. Ole

    Ole Guest

    Angular has effects and example is this:

    effect(() => {
    console.log(`The current count is: ${count()}`);
    });



    And this causes the effect to fire whenever count is is changed.

    So that means that the effect function knows how to index any signals that are contained inside it.

    How does javascript know what functions / signals are being called inside another function?

    Continue reading...

Compartilhe esta Página