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
28 lines
1.1 KiB
TypeScript
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 {}
|