58 lines
2.0 KiB
TypeScript
58 lines
2.0 KiB
TypeScript
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
import { NgModule } from '@angular/core';
|
||
|
|
||
|
import { AppComponent } from './app.component';
|
||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||
|
import { NavigationComponent } from './navigation/navigation.component';
|
||
|
import { LayoutModule } from '@angular/cdk/layout';
|
||
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
||
|
import { MatButtonModule } from '@angular/material/button';
|
||
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
||
|
import { MatIconModule } from '@angular/material/icon';
|
||
|
import { MatListModule } from '@angular/material/list';
|
||
|
import { MessagesComponent } from './messages/messages.component';
|
||
|
import { AppRoutingModule } from './app-routing.module';
|
||
|
import { TestOutputComponent } from './test-output/test-output.component';
|
||
|
import { MatCardModule } from '@angular/material/card';
|
||
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
||
|
import { ErrorHandlerInterceptor } from './error-handler.interceptor';
|
||
|
import { AuthHandlerInterceptor } from './auth-handler.interceptor';
|
||
|
import { LogoutComponent } from './logout/logout.component';
|
||
|
import { LoginComponent } from './login/login.component';
|
||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||
|
import { MatInputModule } from '@angular/material/input';
|
||
|
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
NavigationComponent,
|
||
|
MessagesComponent,
|
||
|
TestOutputComponent,
|
||
|
LogoutComponent,
|
||
|
LoginComponent
|
||
|
],
|
||
|
imports: [
|
||
|
BrowserModule,
|
||
|
BrowserAnimationsModule,
|
||
|
LayoutModule,
|
||
|
HttpClientModule,
|
||
|
MatToolbarModule,
|
||
|
MatButtonModule,
|
||
|
MatSidenavModule,
|
||
|
MatIconModule,
|
||
|
MatListModule,
|
||
|
MatCardModule,
|
||
|
AppRoutingModule,
|
||
|
FormsModule,
|
||
|
ReactiveFormsModule,
|
||
|
MatInputModule
|
||
|
],
|
||
|
providers: [
|
||
|
{ provide: HTTP_INTERCEPTORS, useClass: ErrorHandlerInterceptor, multi: true },
|
||
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthHandlerInterceptor, multi: true }
|
||
|
],
|
||
|
bootstrap: [AppComponent]
|
||
|
})
|
||
|
export class AppModule { }
|