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 {PrintService} from '@eg/share/print/print.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 {StringComponent} from '@eg/share/string/string.component';
32 import {StringService} from '@eg/share/string/string.service';
40 ConfirmDialogComponent,
41 PromptDialogComponent,
42 ProgressInlineComponent,
43 ProgressDialogComponent,
66 ConfirmDialogComponent,
67 PromptDialogComponent,
68 ProgressInlineComponent,
69 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,