summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/app.module.ts
blob: ce9b7da3b9db886c6bd3e972d1973a24b86d4df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import {ApplicationRef, NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {AppComponent} from './app.component';
import {routing} from './app.routing';
import {VlanTaggingModule} from './vlanTagging/vlan-tagging.module'
import {BootstrapModalModule} from 'ng2-bootstrap-modal';
import {HashLocationStrategy, LocationStrategy} from "@angular/common";
import {InstantiationStatusModule} from './instantiationStatus/InstantiationStatus.module';
import {SharedModule} from './shared/shared.module';
import {AngularSvgIconModule} from 'angular-svg-icon';
import {NgReduxModule} from '@angular-redux/store';
import {StoreModule} from "./shared/store/module";
import {HttpInterceptorService} from './shared/utils/httpInterceptor/httpInterceptor.service';
import {DrawingBoardModule} from './drawingBoard/drawingBoard.module';
import {ScrollToModule} from '@nicky-lenaers/ngx-scroll-to';
import {LogService} from './shared/utils/log/log.service';
import {FeatureFlagsService} from "./shared/services/featureFlag/feature-flags.service";
import {SupportComponent} from "./support/support.component";
import {DrawingBoardGuard} from "./drawingBoard/guards/servicePlanningGuard/drawingBoardGuard";
import {MsoService} from "./shared/services/msoService/mso.service";
import {HealthStatusModule} from "./healthStatus/health-status.module";

@NgModule({
  imports: [
    BrowserModule,
    HttpClientModule,
    FormsModule,
    routing,
    SharedModule.forRoot(),
    ScrollToModule.forRoot(),
    DrawingBoardModule,
    HealthStatusModule,
    VlanTaggingModule,
    InstantiationStatusModule,
    BootstrapModalModule,
    AngularSvgIconModule,
    ReactiveFormsModule,
    NgReduxModule,
    StoreModule,
  ],
  declarations: [
    AppComponent,
    SupportComponent,
  ],
  providers: [
    LogService,
    FeatureFlagsService,
    DrawingBoardGuard,
    MsoService,
    { provide: LocationStrategy, useClass: HashLocationStrategy },
    { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true }
  ],
  bootstrap: [AppComponent]
})

export class AppModule {

  constructor(public appRef: ApplicationRef) {
    Object.defineProperty(appRef, '_rootComponents', { get: () => appRef['components'] });
  }
}