diff --git a/src/app/app.config.ts b/src/app/app.config.ts index b9aaf50..35bef9f 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,5 +1,5 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection, isDevMode } from '@angular/core'; -import { PreloadAllModules, provideRouter, withPreloading, withInMemoryScrolling } from '@angular/router'; +import { provideRouter, withInMemoryScrolling } from '@angular/router'; import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { routes } from './app.routes'; @@ -11,8 +11,7 @@ export const appConfig: ApplicationConfig = { provideBrowserGlobalErrorListeners(), provideZoneChangeDetection({ eventCoalescing: true }), provideRouter( - routes, - withPreloading(PreloadAllModules), + routes, withInMemoryScrolling({ scrollPositionRestoration: 'top' }) ), provideHttpClient( diff --git a/src/app/app.html b/src/app/app.html index 3b4e3f4..ee0a585 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -1,20 +1,16 @@ @if (checkingServer()) {
} @else if (!serverAvailable()) { -} @else { +} @else {