I have been working on a project using Angular and recently updated it from version 4.2 to Angular 5. Although I haven't utilized any new features introduced in Angular 5 yet.
My current task involves executing a resolver on a specific route when a certain condition is met within the code. Here's an example:
if (a === b) {
//execute resolver
}
I am uncertain about the correct approach for accomplishing this, as a resolver is essentially a TypeScript class just like any other.