👋 Welcome, Angular Enthusiasts
Welcome to the 21st edition of the Angular Addicts Newsletter — a curated monthly digest of noteworthy Angular content that has captured my attention. (You can revisit the 20th, 19th, and 18th editions whenever you like.)
💎 December 2023's Angular Highlights
📰 The Tale of Change Detection, zone.js, Zoneless, Local Change Detection, and Signals
Enea Jahollari offers an in-depth exploration of Angular's change detection mechanism. His analysis covers:
- The behavior of change detection when confronted with synchronous versus asynchronous operations
- The function that Zone.js fulfills within this system
- The mechanics of marking components as dirty
- The interplay between the OnPush strategy and the async pipe
- The operation of change detection alongside Signals, including the concept of local change detection
📰 Employing RouterTestingHarness for Testing Routed Components
This piece marks the fifth entry in Lars Gyrup Brink Nielsen's ongoing series dedicated to Angular router testing. The full series includes:
- Using RouterTestingModule to test Angular routing components
- Testing Angular components that are routed via RouterTestingModule
- Testing Angular route guards with RouterTestingModule
- Combining RouterTestingHarness, provideLocationMocks, and provideRouter for testing
- Testing routed components with RouterTestingHarness
In this newest installment, Lars demonstrates the practical application of RouterTestingHarness using a router built on the Tour of Heroes router tutorial as his foundation.
📰 The NGRX Signal Store and Its Place in Your Architecture
Manfred Steyer has produced a comprehensive four-part series on NGRX Signal Stores:
- Introducing the NGRX Signal Store for Angular: 3+n Flavor Options
- Working Smarter: Streamlining Your App with NGRX Signal Store and Custom Features
- NGRX Signal Store Exposed: Building Flexible, Type-Safe Custom Extensions
- The NGRX Signal Store and Its Role in Your Architecture
The concluding article in this series (The NGRX Signal Store and Your Architecture) tackles several key architectural considerations: What is the ideal placement for signal stores? What is the recommended size for a store? Is it permissible for one store to interact with another? Can signal stores manage global state? And crucially, can a signal store be integrated with, or even take the place of, the classic Redux-oriented NGRX Store?
📰 Understanding the Subtleties of Angular's toSignal
Netanel Basal's latest post provides strategies for addressing a couple of challenges that arise when using toSignal within services that are provided at the root level:
- The issue of immediate subscription initiation
- The problem of subscriptions leaking within root services
📰 Harnessing Advanced JavaScript Closures for Cleaner Code
In his article, Vamsi Krishna Kodimela breaks down the concept of closures and demonstrates how they can be leveraged for:
- Building factory functions
- Implementing currying techniques
- Enabling memoization
- Managing event handling logic
👨💻 A Few Words About the Author
I'm Gergely Szerovay, serving as a frontend development chapter lead. My passion lies in both teaching and learning Angular. My routine involves a daily dose of Angular-related content — from articles to podcasts to conference talks.
The Angular Addict Newsletter was born from my desire to share the most valuable resources I discover each month. Whether you're just starting your Angular journey or you're a seasoned pro, there should be something here for you.
I also manage a publication aptly named Angular Addicts, a repository of resources I find particularly insightful and engaging. If you're interested in contributing as a writer, don't hesitate to reach out.
Let's continue our Angular learning adventure together! Sign up here 🔥
Connect with me on Substack, Medium, Dev.to, Twitter, or LinkedIn for more Angular insights!
🕹️ Catching Up on Previous Editions
If you've missed any of our past newsletters, all of them are available here. The three most recent issues are:
- Angular Addicts #20: Insights on unit testing defer blocks, NGRX Signal store extensions, app architectures & more
- Angular Addicts #19: Coverage of Angular 17, NX 17, Storybook 7.5 & more
- Angular Addicts #18: A look at Angular 17's new control flow, View transitions, Incremental static regeneration & more
📨 Share Your Angular Discoveries
Stumbled upon a fantastic Angular article, tweet, or other resource recently — either your own creation or someone else's? Feel free to mention it in the comments section below or reach out to me directly on Twitter! It could very well be featured in an upcoming edition of Angular Addicts!
