I have an application that is seperated into the following modules:
/app
/core
/admin
/authentication
/wst
Admin is a complex module with sidebar and authentication is just a login screen. I want to load the sidebar only when the admin module is active and I don't want to include it in the app.component.html with an *ngIf.
How can I make such a configuration to work? I'm using Angular7, and started a stackblitz that shows my problem.
- If I add router-outlet to app.component.html, that eg. /login route works fine.
- If I try the same with /admin nothing shows up.