I have pages in Angular that have a header, a side bar and a main content page. Depending on the the route, the main content changes while the header and the side bar stay pretty much the same. There should be only small changes so it makes sense to create the page outlet centrally. So I have something like:
app.component.html:
<header>...</header>
<nav>...</nav
<main><router-outlet></router-outlet></main>
But for some pages I also want to adjust the header and side bar. Is there a possibility to do something like:
app.component.html:
<header>...<router-outlet #1></router-outlet></header>
<nav>...<router-outlet #2></router-outlet></nav
<main><router-outlet #3></router-outlet></main>
page1.component.html
<content #1><a>Login</a></content>
<content #3>...</content>
so I can optionally add content at multiple places in the root?