I'm using Angular 12 SSR (Server Side Rendering). The problem with my project is that it shows the Header Footer components on hard reload. Whereas, it should show the loader first and then the whole Header Footer and Router Outlet.
Here's my app.component.html
<app-loader></app-loader>
<app-header></app-header>
<router-outlet></router-outlet>
<app-footer></app-footer>
The loader class shows when the HTTP calls starts and hides when all the HTTP requests are responded.
Please let me know if someone else faced the same issue and got a solution to resolve this.
Thanks in advance!