Skip to content
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
Open
@jmls

Description

@jmls

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

image

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

image

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

Metadata

Metadata

Labels

P2Issue that is important to resolve as soon as possiblebugrelated: angular-core

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions