How to show waiting indicator while app is loading using APP_INITIALIZER?

Discussão em 'Angular' iniciado por Utkarsh Chauhan, Junho 30, 2025.

  1. How to show waiting indicator when angular app is executing app_initializer code.

    As of now I can show waiting indicator till app is loaded. But after that page stays empty till app_initializer code is complete. So I want to show some sort of waiting indicator.

    <app-root>Loading....</app-root>


    Also Tried

    <app-root></app-root>
    <div>Loading...</div>


    None of these option work when app_initializer is executing.... during this time period I am calling web api to get some startup data.

    Continue reading...

Compartilhe esta Página