Developing a real-world application with multiple calls to the server can be full of bugs. If you are here, that means you have struggled with the delay of API calls. These delays may cause a negative UX. Today, we are going to understand Route Resolvers in Angular 8. There are several different things that we can do to enhance user experience, such as displaying a progress indicator. To stick to the topic, let’s see what a Route Resolver is and what we can achieve with it.

What Is an Angular Route Resolver?

A Resolver is a class that implements the Resolve interface of Angular Router. In fact, Resolver is a service that has to be [provided] in the root module. Basically, a Resolver acts like middleware, which can be executed before a component is loaded.

Leave a Reply

Your email address will not be published. Required fields are marked *