Sitemap

Member-only story

Resolve or Die!

Error Handling Strategies for Loading Data in Angular

8 min readSep 18, 2023

--

Press enter or click to view image in full size

Welcome back, readers! As we progress through our Angular Advocate rewrite journey, Chapter 6, titled “Resolve or Die”, beckons.

While Route Guards act as vigilant sentinels, verifying conditions like user authentication, Route Resolvers play a slightly different role. They preload necessary data for a page, ensuring seamless user experience. The intricacies, differences, and optimal use of both these features can make a world of difference to your application’s security and performance.

For those who want to see the bigger picture and have access to the entire Angular Advocate content, you can always head over to https://walkingriver.gumroad.com/l/angular-advocate.

And, of course, don’t forget to stay tuned here on Medium for each new chapter release.

Angular Route Guards and Resolvers

Angular provides a powerful mechanism for controlling access to routes in your application — Route Guards. These sentinel-like entities effectively ensure that certain conditions are met before a route is activated. Are you wondering if a user is authenticated? A Route Guard can verify that. If the user isn’t authenticated or doesn’t belong to the appropriate authorization group, access to the…

--

--

Michael D. Callaghan
Michael D. Callaghan

Written by Michael D. Callaghan⁠

Web Developer at Walt Disney World | Published works available on Amazon: https://amzn.to/3u4EdtA