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 { MetricsModule } from './pages/metrics/metrics.module';
|
16
|
import { SourcesModule } from './pages/sources/sources.module';
|
17
|
import { CompatibilityModule } from './pages/compatibility/compatibility.module';
|
18
|
import { ContentModule } from './pages/content/content.module';
|
19
|
import { AdminPgModule } from './pages/adminPg/adminPg.module';
|
20
|
import { RepositoryService } from "./services/repository.service";
|
21
|
import { AuthenticationService } from './services/authentication.service';
|
22
|
import { AuthGuardService } from './services/auth-guard.service';
|
23
|
import { ValidatorService } from './services/validator.service';
|
24
|
import { PiwikService } from './services/piwik.service';
|
25
|
import { BrokerService } from './services/broker.service';
|
26
|
import { MonitorService } from './services/monitor.service';
|
27
|
import { LandingComponent } from "./pages/landing/landing.component";
|
28
|
import { DashboardComponent } from "./pages/dashboard/dashboard.component";
|
29
|
import { UsagestatsService } from './services/usagestats.service';
|
30
|
import { AuthenticationInterceptor } from "./services/authentication-interceptor";
|
31
|
import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
|
32
|
import { CookieLawModule } from "./shared/reusablecomponents/cookie-law/cookie-law.module";
|
33
|
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
|
34
|
import { ReusableComponentsModule } from './shared/reusablecomponents/reusable-components.module';
|
35
|
import { StatisticsService } from './services/statistics.service';
|
36
|
|
37
|
|
38
|
@NgModule({
|
39
|
imports: [
|
40
|
BrowserModule,
|
41
|
NoopAnimationsModule,
|
42
|
FormsModule,
|
43
|
ReactiveFormsModule,
|
44
|
HttpModule,
|
45
|
HttpClientModule,
|
46
|
JsonpModule,
|
47
|
ModalModule.forRoot(),
|
48
|
TabsModule,
|
49
|
ReusableComponentsModule,
|
50
|
CookieLawModule,
|
51
|
AppRouting,
|
52
|
],
|
53
|
declarations: [
|
54
|
AppComponent,
|
55
|
TopMenuComponent,
|
56
|
FooterComponent,
|
57
|
LandingComponent,
|
58
|
DashboardComponent
|
59
|
],
|
60
|
providers: [
|
61
|
{
|
62
|
provide: HTTP_INTERCEPTORS,
|
63
|
useClass: AuthenticationInterceptor,
|
64
|
multi: true
|
65
|
},
|
66
|
BrokerService,
|
67
|
MonitorService,
|
68
|
PiwikService,
|
69
|
RepositoryService,
|
70
|
ValidatorService,
|
71
|
UsagestatsService,
|
72
|
StatisticsService,
|
73
|
AuthGuardService,
|
74
|
AuthenticationService
|
75
|
],
|
76
|
bootstrap: [AppComponent]
|
77
|
})
|
78
|
|
79
|
export class AppModule {}
|