Implementing Dynamic Routing in Angular2 (Typescript) [duplicate]
问题 This question already has answers here : Async load routes data and build route instruction for Angular 2 (4 answers) Closed 3 years ago . 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