blob: ce9b7da3b9db886c6bd3e972d1973a24b86d4df1 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001import {ApplicationRef, NgModule} from '@angular/core';
2import {BrowserModule} from '@angular/platform-browser';
3import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
4import {FormsModule, ReactiveFormsModule} from '@angular/forms';
5import {AppComponent} from './app.component';
6import {routing} from './app.routing';
7import {VlanTaggingModule} from './vlanTagging/vlan-tagging.module'
8import {BootstrapModalModule} from 'ng2-bootstrap-modal';
9import {HashLocationStrategy, LocationStrategy} from "@angular/common";
10import {InstantiationStatusModule} from './instantiationStatus/InstantiationStatus.module';
11import {SharedModule} from './shared/shared.module';
12import {AngularSvgIconModule} from 'angular-svg-icon';
13import {NgReduxModule} from '@angular-redux/store';
14import {StoreModule} from "./shared/store/module";
15import {HttpInterceptorService} from './shared/utils/httpInterceptor/httpInterceptor.service';
16import {DrawingBoardModule} from './drawingBoard/drawingBoard.module';
17import {ScrollToModule} from '@nicky-lenaers/ngx-scroll-to';
18import {LogService} from './shared/utils/log/log.service';
19import {FeatureFlagsService} from "./shared/services/featureFlag/feature-flags.service";
20import {SupportComponent} from "./support/support.component";
21import {DrawingBoardGuard} from "./drawingBoard/guards/servicePlanningGuard/drawingBoardGuard";
22import {MsoService} from "./shared/services/msoService/mso.service";
23import {HealthStatusModule} from "./healthStatus/health-status.module";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030024
25@NgModule({
26 imports: [
27 BrowserModule,
28 HttpClientModule,
29 FormsModule,
30 routing,
31 SharedModule.forRoot(),
32 ScrollToModule.forRoot(),
33 DrawingBoardModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +030034 HealthStatusModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030035 VlanTaggingModule,
36 InstantiationStatusModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030037 BootstrapModalModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030038 AngularSvgIconModule,
39 ReactiveFormsModule,
40 NgReduxModule,
41 StoreModule,
42 ],
43 declarations: [
44 AppComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +030045 SupportComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030046 ],
47 providers: [
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030048 LogService,
Ittay Stern6f900cc2018-08-29 17:01:32 +030049 FeatureFlagsService,
50 DrawingBoardGuard,
51 MsoService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030052 { provide: LocationStrategy, useClass: HashLocationStrategy },
53 { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true }
54 ],
55 bootstrap: [AppComponent]
56})
Ittay Stern6f900cc2018-08-29 17:01:32 +030057
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030058export class AppModule {
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030059
60 constructor(public appRef: ApplicationRef) {
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030061 Object.defineProperty(appRef, '_rootComponents', { get: () => appRef['components'] });
62 }
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030063}