Project

General

Profile

1
import { AppComponent } from './app.component';
2
import { NgModule } from '@angular/core';
3
import { BrowserModule } from '@angular/platform-browser';
4
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
5
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
7
import { ReusableComponentsModule } from './shared/reusablecomponents/reusable-components.module';
8
import { CookieLawModule } from './shared/reusablecomponents/cookie-law/cookie-law.module';
9
import { AppRoutingModule } from './app-routing.module';
10
import { AuthenticationInterceptor } from './services/authentication-interceptor';
11
import { BrokerService } from './services/broker.service';
12
import { MonitorService } from './services/monitor.service';
13
import { PiwikService } from './services/piwik.service';
14
import { RepositoryService } from './services/repository.service';
15
import { ValidatorService } from './services/validator.service';
16
import { UsagestatsService } from './services/usagestats.service';
17
import { StatisticsService } from './services/statistics.service';
18
import { AuthGuardService } from './services/auth-guard.service';
19
import { AuthenticationService } from './services/authentication.service';
20
import { LandingComponent } from './pages/landing/landing.component';
21
import { DashboardComponent } from './pages/dashboard/dashboard.component';
22
import { MatomoModule } from 'ngx-matomo';
23

    
24

    
25
@NgModule({
26
  declarations: [
27
    AppComponent,
28
    LandingComponent,
29
    DashboardComponent
30
  ],
31
  imports: [
32
    BrowserModule,
33
    NoopAnimationsModule,
34
    FormsModule,
35
    ReactiveFormsModule,
36
    HttpClientModule,
37
    ReusableComponentsModule,
38
    CookieLawModule,
39
    MatomoModule,
40
    AppRoutingModule
41
  ],
42
  providers: [
43
    {
44
      provide: HTTP_INTERCEPTORS,
45
      useClass: AuthenticationInterceptor,
46
      multi: true
47
    },
48
    BrokerService,
49
    MonitorService,
50
    PiwikService,
51
    RepositoryService,
52
    ValidatorService,
53
    UsagestatsService,
54
    StatisticsService,
55
    AuthGuardService,
56
    AuthenticationService
57
  ],
58
  bootstrap: [AppComponent]
59
})
60
export class AppModule { }
(6-6/6)