Implementing Dynamic Routing in Angular2 (Typescript) [duplicate]
This question already has an answer here: Async load routes data and build route instruction for Angular 2 4 answers RouteConfig class which can be used to decorate a component (@RouteConfig) with routing capabilities has certain route definitions defined for that component. Now, the catch is to have these route definitions injected at runtime (dynamically). The reason being, let's say I have an application wherein I have to display (UI) and define (decorate) 'n' number of routes, each which corresponds to the account for which the application is loaded and consequently the rights that are