My page does not load the styles correctly when accessing one of its links in Angular

Discussão em 'Angular' iniciado por Gerard, Março 14, 2025.

  1. Gerard

    Gerard Guest

    I have this html page on angular:

    <div class="main-page-container">
    <sidebar-your-chef></sidebar-your-chef>
    <div class="content">
    <router-outlet></router-outlet>
    </div>
    </div>



    When any of the app's routes are loaded, the styles at startup do not load and for a moment the sidebar is seen without the CSS styles applied. Why don't the styles load initially?

    I don't have a global CSS template; instead, each component has its own CSS.

    Continue reading...

Compartilhe esta Página