1
|
/**
|
2
|
* Created by stefania on 10/3/16.
|
3
|
*/
|
4
|
import { NgModule } from '@angular/core';
|
5
|
import { BrowserModule } from '@angular/platform-browser';
|
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
7
|
import { HttpModule, JsonpModule } from '@angular/http';
|
8
|
|
9
|
import { TabsModule, ModalModule } from 'ngx-bootstrap';
|
10
|
|
11
|
import { AppRouting } from './app.routing';
|
12
|
import { AppComponent } from './app.component';
|
13
|
import { TopMenuComponent } from './shared/topmenu/topmenu.component';
|
14
|
import { FooterComponent } from './shared/footer/footer.component';
|
15
|
import { RepositoryService } from "./services/repository.service";
|
16
|
import { AuthenticationService } from './services/authentication.service';
|
17
|
import { AuthGuardService } from './services/auth-guard.service';
|
18
|
import { ValidatorService } from './services/validator.service';
|
19
|
import { PiwikService } from './services/piwik.service';
|
20
|
import { BrokerService } from './services/broker.service';
|
21
|
import { MonitorService } from './services/monitor.service';
|
22
|
import { LandingComponent } from "./pages/landing/landing.component";
|
23
|
import { DashboardComponent } from "./pages/dashboard/dashboard.component";
|
24
|
import { UsagestatsService } from './services/usagestats.service';
|
25
|
import { AuthenticationInterceptor } from "./services/authentication-interceptor";
|
26
|
import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
|
27
|
import { CookieLawModule } from "./shared/reusablecomponents/cookie-law/cookie-law.module";
|
28
|
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
|
29
|
import { ReusableComponentsModule } from './shared/reusablecomponents/reusable-components.module';
|
30
|
import { StatisticsService } from './services/statistics.service';
|
31
|
|
32
|
|
33
|
@NgModule({
|
34
|
imports: [
|
35
|
BrowserModule,
|
36
|
NoopAnimationsModule,
|
37
|
FormsModule,
|
38
|
ReactiveFormsModule,
|
39
|
HttpModule,
|
40
|
HttpClientModule,
|
41
|
JsonpModule,
|
42
|
ModalModule.forRoot(),
|
43
|
TabsModule,
|
44
|
ReusableComponentsModule,
|
45
|
CookieLawModule,
|
46
|
AppRouting,
|
47
|
],
|
48
|
declarations: [
|
49
|
AppComponent,
|
50
|
TopMenuComponent,
|
51
|
FooterComponent,
|
52
|
LandingComponent,
|
53
|
DashboardComponent
|
54
|
],
|
55
|
providers: [
|
56
|
{
|
57
|
provide: HTTP_INTERCEPTORS,
|
58
|
useClass: AuthenticationInterceptor,
|
59
|
multi: true
|
60
|
},
|
61
|
BrokerService,
|
62
|
MonitorService,
|
63
|
PiwikService,
|
64
|
RepositoryService,
|
65
|
ValidatorService,
|
66
|
UsagestatsService,
|
67
|
StatisticsService,
|
68
|
AuthGuardService,
|
69
|
AuthenticationService
|
70
|
],
|
71
|
bootstrap: [AppComponent]
|
72
|
})
|
73
|
|
74
|
export class AppModule {}
|