2 * Modules, services, and components used by all apps.
4 import {CommonModule} from '@angular/common';
5 import {NgModule, ModuleWithProviders} from '@angular/core';
6 import {RouterModule} from '@angular/router';
7 import {FormsModule, ReactiveFormsModule} from '@angular/forms';
8 import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
9 import {EgCoreModule} from '@eg/core/core.module';
12 Note core services are injected into 'root'.
13 They do not have to be added to the providers list.
16 // consider moving these to core...
17 import {HatchService} from '@eg/share/print/hatch.service';
18 import {HtmlToTxtService} from '@eg/share/util/htmltotxt.service';
19 import {PrintService} from '@eg/share/print/print.service';
21 // Globally available components
22 import {PrintComponent} from '@eg/share/print/print.component';
23 import {DialogComponent} from '@eg/share/dialog/dialog.component';
24 import {AlertDialogComponent} from '@eg/share/dialog/alert.component';
25 import {ConfirmDialogComponent} from '@eg/share/dialog/confirm.component';
26 import {PromptDialogComponent} from '@eg/share/dialog/prompt.component';
27 import {ProgressInlineComponent} from '@eg/share/dialog/progress-inline.component';
28 import {ProgressDialogComponent} from '@eg/share/dialog/progress.component';
29 import {BoolDisplayComponent} from '@eg/share/util/bool.component';
30 import {ToastService} from '@eg/share/toast/toast.service';
31 import {ToastComponent} from '@eg/share/toast/toast.component';
32 import {StringModule} from '@eg/share/string/string.module';
40 ConfirmDialogComponent,
41 PromptDialogComponent,
42 ProgressInlineComponent,
43 ProgressDialogComponent,
67 ConfirmDialogComponent,
68 PromptDialogComponent,
69 ProgressInlineComponent,
70 ProgressDialogComponent,
76 export class EgCommonModule {
77 /** forRoot() lets us define services that should only be
78 * instantiated once for all loaded routes */
79 static forRoot(): ModuleWithProviders {
81 ngModule: EgCommonModule,