2021-08-02 16:52:31 +02:00
|
|
|
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';
|
2021-08-30 19:00:27 +02:00
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field'
|
2021-08-29 12:50:59 +02:00
|
|
|
import { MyTenantsComponent } from './my-tenants/my-tenants.component';
|
2021-08-30 15:55:08 +02:00
|
|
|
import { MatTableModule } from '@angular/material/table';
|
|
|
|
import { MyPremisesComponent } from './my-premises/my-premises.component';
|
|
|
|
import { MyFlatsComponent } from './my-flats/my-flats.component';
|
|
|
|
import { MyParkingsComponent } from './my-parkings/my-parkings.component';
|
|
|
|
import { MyCommercialUnitsComponent } from './my-commercial-units/my-commercial-units.component';
|
2021-08-30 19:00:27 +02:00
|
|
|
import { TenantDetailsComponent } from './tenant-details/tenant-details.component';
|
2021-09-01 17:58:49 +02:00
|
|
|
import { PremiseDetailsComponent } from './premise-details/premise-details.component';
|
|
|
|
import { FlatDetailsComponent } from './flat-details/flat-details.component';
|
|
|
|
import { MatSelectModule } from '@angular/material/select'
|
2021-08-02 16:52:31 +02:00
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
NavigationComponent,
|
|
|
|
MessagesComponent,
|
|
|
|
TestOutputComponent,
|
|
|
|
LogoutComponent,
|
2021-08-29 12:50:59 +02:00
|
|
|
LoginComponent,
|
2021-08-30 15:55:08 +02:00
|
|
|
MyTenantsComponent,
|
|
|
|
MyPremisesComponent,
|
|
|
|
MyFlatsComponent,
|
|
|
|
MyParkingsComponent,
|
2021-08-30 19:00:27 +02:00
|
|
|
MyCommercialUnitsComponent,
|
2021-09-01 17:58:49 +02:00
|
|
|
TenantDetailsComponent,
|
|
|
|
PremiseDetailsComponent,
|
|
|
|
FlatDetailsComponent
|
2021-08-02 16:52:31 +02:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
LayoutModule,
|
|
|
|
HttpClientModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatButtonModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatListModule,
|
|
|
|
MatCardModule,
|
|
|
|
AppRoutingModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
2021-08-30 15:55:08 +02:00
|
|
|
MatTableModule,
|
2021-08-30 19:00:27 +02:00
|
|
|
MatInputModule,
|
2021-09-01 17:58:49 +02:00
|
|
|
MatFormFieldModule,
|
|
|
|
MatSelectModule
|
2021-08-02 16:52:31 +02:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: ErrorHandlerInterceptor, multi: true },
|
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthHandlerInterceptor, multi: true }
|
|
|
|
],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|