Angular Proposes Fine-Grained Reactivity With Signals

Reactivity with Signals has the potential to fundamentally change how we write Angular applications

Edward Ezekiel
HeroDevs

--

Angular logo radiating signals

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:

  1. What is Angular’s current Reactivity System?
  2. Where did this proposal come from?
  3. What is “Reactivity with Signals” and how does it improve Angular’s Reactivity System?
  4. 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:

Matteo Collina warning against monkey patching global objects

Continue Reading on HeroDevs Blog: For the full article and more in-depth insights, visit our official blog. Click here to read the complete post on HeroDevs.

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.

--

--

💻 Senior Angular Engineer @herodevs | 👨‍👩‍👧‍👦 Husband and Dad | ⚖️ Juris Doctor