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