Blog posts with category Angular Snippets

Cover Image for Angular and Zod makes for nice combination for type validation

Angular and Zod makes for nice combination for type validation

2026-02-05
3 min read

Working with data from No-SQL databases like Firebase Firestore in your Angular applications can sometimes lead to unexpected type inconsistencies. This is where Zod, a powerful TypeScript-first schema declaration and validation library, can become a valuable ally.

Cover Image for A simple service for responsive Angular applications

A simple service for responsive Angular applications

2026-02-02
3 min read

Building responsive user interfaces can sometimes feel like a puzzle. Angular's BreakpointObserver from the CDK is a fantastic tool for reacting to screen size changes, and when combined with the power of signals, it becomes even more elegant. Let's look at a simple service that centralizes your responsive logic, making your components cleaner and more declarative.

Cover Image for Angular State Management Pitfall: Mutable vs Immutable Signal Updates

Angular State Management Pitfall: Mutable vs Immutable Signal Updates

2026-01-26
2 min read

Angular Signals are a fantastic addition for building reactive applications, offering a simple and powerful way to manage state. However, there's a subtle but common pitfall when using them with objects or arrays that can leave you scratching your head, wondering why your UI isn't updating.

Cover Image for Use Server Routes with Angular SSR to granularly specify render modes

Use Server Routes with Angular SSR to granularly specify render modes

2026-01-23
2 min read

When building modern Angular applications, especially public-facing ones, Server-Side Rendering (SSR) is a powerful tool for enhancing SEO and improving initial page load performance. But what if you need different rendering strategies for different routes? Angular's Server Routes feature provides an elegant solution for granular control over render modes.

Cover Image for How to Retain Previous Values During Angular Resource Refetch

How to Retain Previous Values During Angular Resource Refetch

2026-01-19
3 min read

Have you ever noticed a brief flicker or a flash of empty data on your Angular UI when a resource is refetching? It's a common scenario: your application initiates a data fetch, and for a moment, the old data disappears before the new data arrives, leaving a less-than-ideal user experience.

Cover Image for Use withResource to seamlessly combine Resources with Ngrx Signals Store!

Use withResource to seamlessly combine Resources with Ngrx Signals Store!

2026-01-16
2 min read

Angular applications often need to fetch data from APIs, and managing the state of that data – including loading and error states – can sometimes feel like a repetitive task. If you're using Ngrx Signals Store, there's a neat solution in the "Ngrx Toolkit" package called withResource that streamlines this process beautifully.

Back to the blog