Project

General

Profile

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

    
35

    
36
@NgModule({
37
  imports: [
38
    BrowserModule,
39
    NoopAnimationsModule,
40
    FormsModule,
41
    ReactiveFormsModule,
42
    HttpModule,
43
    HttpClientModule,
44
    JsonpModule,
45
    ModalModule.forRoot(),
46
//    routing,
47
    AppRouting,
48
    TabsModule,
49
    MetricsModule,
50
    SourcesModule,
51
    CompatibilityModule,
52
    ContentModule,
53
    AdminPgModule,
54
    CookieLawModule
55
  ],
56
  declarations: [
57
    AppComponent,
58
    TopMenuComponent,
59
    FooterComponent,
60
    LandingComponent,
61
    DashboardComponent
62
  ],
63
  providers: [
64
    {
65
      provide: HTTP_INTERCEPTORS,
66
      useClass: AuthenticationInterceptor,
67
      multi: true
68
    },
69
    BrokerService,
70
    MonitorService,
71
    PiwikService,
72
    RepositoryService,
73
    ValidatorService,
74
    UsagestatsService,
75
    AuthGuardService,
76
    AuthenticationService
77
  ],
78
  bootstrap: [AppComponent]
79
})
80

    
81
export class AppModule {}
(3-3/7)