2 * Modules, services, and components used by all apps.
4 import {CommonModule, DatePipe, CurrencyPipe} from '@angular/common';
5 import {NgModule, ModuleWithProviders} from '@angular/core';
6 import {RouterModule} from '@angular/router';
7 import {FormsModule} from '@angular/forms';
8 import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
11 Note core services are injected into 'root'.
12 They do not have to be added to the providers list.
15 // consider moving these to core...
16 import {FormatService, FormatValuePipe} from '@eg/core/format.service';
17 import {PrintService} from '@eg/share/print/print.service';
19 // Globally available components
20 import {PrintComponent} from '@eg/share/print/print.component';
21 import {DialogComponent} from '@eg/share/dialog/dialog.component';
22 import {AlertDialogComponent} from '@eg/share/dialog/alert.component';
23 import {ConfirmDialogComponent} from '@eg/share/dialog/confirm.component';
24 import {PromptDialogComponent} from '@eg/share/dialog/prompt.component';
25 import {ProgressInlineComponent} from '@eg/share/dialog/progress-inline.component';
26 import {ProgressDialogComponent} from '@eg/share/dialog/progress.component';
33 ConfirmDialogComponent,
34 PromptDialogComponent,
35 ProgressInlineComponent,
36 ProgressDialogComponent,
53 ConfirmDialogComponent,
54 PromptDialogComponent,
55 ProgressInlineComponent,
56 ProgressDialogComponent,
61 export class EgCommonModule {
62 /** forRoot() lets us define services that should only be
63 * instantiated once for all loaded routes */
64 static forRoot(): ModuleWithProviders {
66 ngModule: EgCommonModule,