I am working on an angular app which I recently converted into angular 5 from angular 4.2( although I am not using any feature of angular 5 yet).
I need to execute an resolver on a particular route on demand ( from the code when a certain condition met). for example
if ( a === b) {
//execute resolver
}
I am not sure, what is the right way of doing that as resolver is a class just like any other typescript class.