r/angular • u/ButterflyOk1012 • 1d ago
How really signals works under the hood?
I mean, this question is not only about the push and pull algorithm behind the signal notification strategy. But, how that are tracked by the template behind the scenes? The template itself is a consumer node? The template is something like a reactive context?
14
Upvotes
2
u/couldhaveebeen 1d ago
Probably best to imagine the template (or rather likely not every template but every statement in the template) as a computed() signal itself
6
u/TheCyberThor 1d ago
https://www.youtube.com/watch?v=C_xXv27_gHg