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...