profiles => format clean archi
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import {ApplicationConfig} from '@angular/core';
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
import {
|
||||
PreloadAllModules,
|
||||
provideRouter,
|
||||
withInMemoryScrolling,
|
||||
withPreloading,
|
||||
withViewTransitions
|
||||
withViewTransitions,
|
||||
} from '@angular/router';
|
||||
|
||||
import {routes} from './app.routes';
|
||||
import {provideHttpClient, withFetch} from "@angular/common/http";
|
||||
import {provideAnimations} from "@angular/platform-browser/animations";
|
||||
import {provideToastr} from "ngx-toastr";
|
||||
import { routes } from './app.routes';
|
||||
import { provideHttpClient, withFetch } from '@angular/common/http';
|
||||
import { provideAnimations } from '@angular/platform-browser/animations';
|
||||
import { provideToastr } from 'ngx-toastr';
|
||||
import { PROFILE_REPOSITORY_TOKEN } from '@app/infrastructure/profiles/profile-repository.token';
|
||||
import { PbProfileRepository } from '@app/infrastructure/profiles/pb-profile.repository';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@@ -18,18 +20,18 @@ export const appConfig: ApplicationConfig = {
|
||||
routes,
|
||||
withViewTransitions(),
|
||||
withPreloading(PreloadAllModules),
|
||||
withInMemoryScrolling(
|
||||
{
|
||||
scrollPositionRestoration: 'enabled',
|
||||
anchorScrolling: 'enabled',
|
||||
}
|
||||
)),
|
||||
withInMemoryScrolling({
|
||||
scrollPositionRestoration: 'enabled',
|
||||
anchorScrolling: 'enabled',
|
||||
})
|
||||
),
|
||||
provideAnimations(),
|
||||
provideHttpClient(withFetch()),
|
||||
{ provide: PROFILE_REPOSITORY_TOKEN, useExisting: PbProfileRepository },
|
||||
provideToastr({
|
||||
timeOut: 10000,
|
||||
positionClass: 'toast-top-right',
|
||||
preventDuplicates: true,
|
||||
}), // Toastr providers
|
||||
]
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user