la base du site fonctionnelle
This commit is contained in:
committed by
styve Lioumba
parent
27d260829c
commit
1bf76c6c66
29
src/app/app.config.ts
Normal file
29
src/app/app.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {ApplicationConfig} from '@angular/core';
|
||||
import {
|
||||
PreloadAllModules,
|
||||
provideRouter,
|
||||
withInMemoryScrolling,
|
||||
withPreloading,
|
||||
withViewTransitions
|
||||
} from '@angular/router';
|
||||
|
||||
import {routes} from './app.routes';
|
||||
import {provideHttpClient, withFetch} from "@angular/common/http";
|
||||
import {provideAnimations} from "@angular/platform-browser/animations";
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideRouter(
|
||||
routes,
|
||||
withViewTransitions(),
|
||||
withPreloading(PreloadAllModules),
|
||||
withInMemoryScrolling(
|
||||
{
|
||||
scrollPositionRestoration: 'enabled',
|
||||
anchorScrolling: 'enabled',
|
||||
}
|
||||
)),
|
||||
provideAnimations(),
|
||||
provideHttpClient(withFetch())
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user