Files
mina-sidor-fa-web/apps/mina-sidor-fa/src/app/app.module.ts
Daniel Appelgren 8da6899e04 Merge pull request #106 in TEA/mina-sidor-fa-web from fix-swedish-locale to develop
Squashed commit of the following:

commit 275c5e6765e2a5c3a252c0c044772427d874bc95
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Mon Sep 20 10:26:16 2021 +0200

    Update app.module.ts
2021-09-20 14:04:53 +02:00

28 lines
1.1 KiB
TypeScript

import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { ErrorHandler, LOCALE_ID, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AuthInterceptor } from '@msfa-interceptors/auth.interceptor';
import { CustomErrorHandler } from '@msfa-interceptors/custom-error-handler.module';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ToastListModule } from './components/toast-list/toast-list.module';
import { AvropModule } from './pages/avrop/avrop.module';
import localeSe from '@angular/common/locales/sv';
import { registerLocaleData } from '@angular/common';
registerLocaleData(localeSe);
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, HttpClientModule, AppRoutingModule, ToastListModule, AvropModule],
providers: [
{
provide: ErrorHandler,
useClass: CustomErrorHandler,
},
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
{ provide: LOCALE_ID, useValue: 'sv-SE' },
],
bootstrap: [AppComponent],
})
export class AppModule {}