This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
router-outlet issues #171
Open
Description
I am trying to reproduce the "holy grail" layout , but within a <router-outlet>
if I make my component template empty, and in the main html I have this code
<router-outlet></router-outlet>
<div class="containerX">
<div class="colorNested box" fxLayout="column">
<header>header</header>
<div id="main" fxLayout fxFlex >
<nav fxFlex="1 6 20%" fxFlexOrder > nav </nav>
<article fxFlex="3 1 60%" fxFlexOrder > article </article>
<aside fxFlex="1 6 20%" fxFlexOrder > aside </aside>
</div>
<footer>footer</footer>
</div>
</div>
where the "containerX" html is lifted straight from the demo code, my screen looks like this
so, now I cut the holy grail from the main html,
<router-outlet></router-outlet>
and paste the holy grail code into the component html
<div class="containerX">
<div class="colorNested box" fxLayout="column">
<header>header</header>
<div id="main" fxLayout fxFlex >
<nav fxFlex="1 6 20%" fxFlexOrder > nav </nav>
<article fxFlex="3 1 60%" fxFlexOrder > article </article>
<aside fxFlex="1 6 20%" fxFlexOrder > aside </aside>
</div>
<footer>footer</footer>
</div>
</div>
the screen now looks like this
I have tried to add fxLayout="column"
to the router-outlet, didn't make a change, so I know I'm missing something obvious ...
I am using the latest git version
thanks