I have a unique application structure with different modules:
/app
/core
/admin
/authentication
/wst
The admin module is quite complex, featuring a sidebar, while the authentication module is simple with just a login screen. I want to dynamically load the sidebar only when the admin module is active without including it in the app.component.html using *ngIf directive.
Is there a way to configure this setup effectively? I am currently working on Angular 7 and have set up a stackblitz example demonstrating the issue.
- When I add router-outlet to app.component.html, routes like /login work perfectly.
- However, when trying the same with /admin, nothing shows up.