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
Since you will be using one route for either component, one solution is create another component for that route then its template could refer to both components but with an ngIf like below: