Get more control of routes, make application more flexible.
Usually in our code, routes are all pre-defined. We define them as an constant routes
variable, and register it into our app-routing.module.ts
file. If we have lazy loaded modules, they also have their own routes defined and registered. Each module is very clear about how it will do the navigation, and we don’t normally need to worry…