Blame view

src/app/app.module.ts 3.63 KB
c680f5b4   Administrator   first commit
1
2
3
  import { NgModule, Type } from '@angular/core';
  import { BrowserModule, Title }  from '@angular/platform-browser';
  
7085f966   Yarik   Validation try
4
  import { CovalentCoreModule, CovalentLoadingModule } from '@covalent/core';
c680f5b4   Administrator   first commit
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  import { CovalentHttpModule, IHttpInterceptor } from '@covalent/http';
  import { CovalentHighlightModule } from '@covalent/highlight';
  import { CovalentMarkdownModule } from '@covalent/markdown';
  import { CovalentChartsModule } from '@covalent/charts';
  
  import { AppComponent } from './app.component';
  import { MainComponent } from './main/main.component';
  import { LoginComponent } from './login/login.component';
  import { DataComponent } from './data/data.component';
  import { TemplatesComponent } from './templates/templates.component';;
  import { appRoutes, appRoutingProviders } from './app.routes';
  import { AgGridModule } from 'ag-grid-ng2/main';
  import { ChartComponent } from '../components/chart/chart.component';
  
  import { RequestInterceptor } from '../config/interceptors/request.interceptor';
  
  import { NgxChartsModule } from '@swimlane/ngx-charts';
  
  import { BusStopComponent } from './data/bus-stop/bus-stop.component';
c36e5ea5   Administrator   add service-object
24
  import { ServiceObjectComponent } from './data/service-object/service-object.component';
e06cfa2b   Administrator   add road width
25
26
  import { RoadSurfaceComponent } from './data/road-surface/road-surface.component';
  import { RoadWidthComponent } from './data/road-width/road-width.component';
c680f5b4   Administrator   first commit
27
28
29
30
31
  import { EditorComponent } from '../helpers/editor.component';
  import { RendererComponent } from '../helpers/renderer.component';
  
  // Services
  import { BusStopCreateService } from '../services/bus-stop-create.service';
c680f5b4   Administrator   first commit
32
  import { BusStopService } from '../services/bus-stop.service';
c36e5ea5   Administrator   add service-object
33
34
  import { ServiceObjectCreateService } from '../services/service-object-create.service';
  import { ServiceObjectService } from '../services/service-object.service';
e06cfa2b   Administrator   add road width
35
36
37
38
  import { RoadSurfaceService } from '../services/road-surface.service';
  import { RoadSurfaceCreateService } from '../services/road-surface-create.service';
  import { RoadWidthService } from '../services/road-width.service';
  import { RoadWidthCreateService } from '../services/road-width-create.service';
c36e5ea5   Administrator   add service-object
39
40
  import { BooleanSelectListService } from '../services/boolean-select-list.service';
  
c680f5b4   Administrator   first commit
41
42
43
44
45
46
47
48
49
50
51
52
53
  const httpInterceptorProviders: Type<any>[] = [
    RequestInterceptor,
  ];
  
  @NgModule({
    declarations: [
      AppComponent,
      MainComponent,
      DataComponent,
      LoginComponent,
      ChartComponent,
      TemplatesComponent,
      BusStopComponent,
c36e5ea5   Administrator   add service-object
54
      ServiceObjectComponent,
e06cfa2b   Administrator   add road width
55
      RoadSurfaceComponent,
c680f5b4   Administrator   first commit
56
57
      EditorComponent,
      RendererComponent,
e06cfa2b   Administrator   add road width
58
      RoadWidthComponent,
c680f5b4   Administrator   first commit
59
60
61
62
63
    ], // directives, components, and pipes owned by this NgModule
    imports: [
      BrowserModule,
      AgGridModule.withComponents([
        BusStopComponent,
c36e5ea5   Administrator   add service-object
64
        ServiceObjectComponent,
c680f5b4   Administrator   first commit
65
66
        EditorComponent,
        RendererComponent,
e06cfa2b   Administrator   add road width
67
68
        RoadSurfaceComponent,
        RoadWidthComponent,
c680f5b4   Administrator   first commit
69
70
71
72
73
74
75
76
77
78
      ]),
      CovalentCoreModule.forRoot(),
      CovalentChartsModule.forRoot(),
      CovalentHttpModule.forRoot({
        interceptors: [{
          interceptor: RequestInterceptor, paths: ['**'],
        }],
      }),
      CovalentHighlightModule.forRoot(),
      CovalentMarkdownModule.forRoot(),
7085f966   Yarik   Validation try
79
      CovalentLoadingModule.forRoot(),
c680f5b4   Administrator   first commit
80
81
82
83
84
85
86
      appRoutes,
      NgxChartsModule,
    ], // modules needed to run this module
    providers: [
      appRoutingProviders,
      httpInterceptorProviders,
      Title,
c680f5b4   Administrator   first commit
87
      BooleanSelectListService,
c36e5ea5   Administrator   add service-object
88
      BusStopCreateService,
7085f966   Yarik   Validation try
89
      BusStopService,
c36e5ea5   Administrator   add service-object
90
      ServiceObjectCreateService,
e06cfa2b   Administrator   add road width
91
92
93
94
95
      ServiceObjectService,
      RoadSurfaceCreateService,
      RoadSurfaceService,
      RoadWidthCreateService,
      RoadWidthService,
c680f5b4   Administrator   first commit
96
97
98
99
100
    ], // additional providers needed for this module
    entryComponents: [ ],
    bootstrap: [ AppComponent ],
  })
  export class AppModule {}