I\'d like to attach a component to a route asynchronously, given a condition.
The following example, which works (but is asynchronous), loads one compon
I advice you make use of navigating programatically using the router's navigate method . So you list all the posible routes in the router file .Then in your component you call router.navigate() based on the specific case .