Angular Proposes Fine-Grained Reactivity With Signals
Reactivity with Signals has the potential to fundamentally change how we write Angular applications
Angular has announced a prototype that adds a ‘Signal’ reactive primitive to the framework. Reactivity with Signals has the potential to fundamentally change how we write Angular applications. This post addresses a few key questions related to this proposal:
- What is Angular’s current Reactivity System?
- Where did this proposal come from?
- What is “Reactivity with Signals” and how does it improve Angular’s Reactivity System?
- What does this mean for RxJS?
1. The Current State of Angular’s Reactivity: MonkeyPatching with Zone.js
Angular’s reactivity system is due for an upgrade. It is built on Zone.js
, which is a library that monkey-patches the Browser API (Promise, addEventListener, setTimeout). These monkey-patches allow Angular to hook into browser events, trigger DOM updates, and propagate changes throughout the application using a top-down approach.
I’ll let this tweet by Node.js Technical Steering Committee member Matteo Collina speak for itself:
About HeroDevs
HeroDevs is a software engineering and consulting studio that specializes in front-end development. Our team has authored or co-authored projects like the Angular CLI, Angular Universal, Scully, XLTS — extended long-term support for AngularJS, ng-conf, and many others. We work with fast-growing startups and some of the world’s largest companies like Google, GE, Capital One, Experian, T-Mobile, Corteva, and others. Learn more about us at herodevs.com.