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 import {HtmlToTxtService} from '@eg/share/util/htmltotxt.service';
17 import {PrintService} from '@eg/share/print/print.service';
18 import {AnonCacheService} from '@eg/share/util/anon-cache.service';
20 // Globally available components
21 import {PrintComponent} from '@eg/share/print/print.component';
22 import {DialogComponent} from '@eg/share/dialog/dialog.component';
23 import {AlertDialogComponent} from '@eg/share/dialog/alert.component';
24 import {ConfirmDialogComponent} from '@eg/share/dialog/confirm.component';
25 import {PromptDialogComponent} from '@eg/share/dialog/prompt.component';
26 import {ProgressInlineComponent} from '@eg/share/dialog/progress-inline.component';
27 import {ProgressDialogComponent} from '@eg/share/dialog/progress.component';
28 import {BoolDisplayComponent} from '@eg/share/util/bool.component';
29 import {ToastService} from '@eg/share/toast/toast.service';
30 import {ToastComponent} from '@eg/share/toast/toast.component';
31 import {StringModule} from '@eg/share/string/string.module';
39 ConfirmDialogComponent,
40 PromptDialogComponent,
41 ProgressInlineComponent,
42 ProgressDialogComponent,
66 ConfirmDialogComponent,
67 PromptDialogComponent,
68 ProgressInlineComponent,
69 ProgressDialogComponent,
75 export class EgCommonModule {
76 /** forRoot() lets us define services that should only be
77 * instantiated once for all loaded routes */
78 static forRoot(): ModuleWithProviders<EgCommonModule> {
80 ngModule: EgCommonModule,