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
You could just define a higher-level component f.e. DashboardComponent which is included at route /dashboards
The parent component is then supposed to load the children in its template based on the asynchronous condition.
This way you will also need to use the *ngIf but at least its not cluttering the child components templates.