app.module.ts 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  3. import { NgModule, LOCALE_ID } from '@angular/core';
  4. import { FormsModule, ReactiveFormsModule } from '@angular/forms';
  5. import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
  6. import { registerLocaleData, DatePipe } from '@angular/common';
  7. import { RouterModule } from '@angular/router';
  8. // Internationalization i18n
  9. import localeSv from '@angular/common/locales/es-SV';
  10. import localeEsExtra from '@angular/common/locales/extra/es';
  11. registerLocaleData(localeSv, 'es-SV', localeEsExtra);
  12. // used to create fake backend
  13. //import { fakeBackendProvider } from './helpers';
  14. //import { JwtInterceptor, ErrorInterceptor } from './helpers';
  15. import { AppRoutingModule } from './app.routing';
  16. import { AppComponent } from './app.component';
  17. import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
  18. import { ChartsModule } from 'ng2-charts';
  19. import { SharedModule } from './components/shared/shared.module';
  20. import { AdminComponent } from './layouts/admin/admin.component';
  21. import { NgxDatatableModule } from '@swimlane/ngx-datatable';
  22. import { MatSelectModule } from '@angular/material/select';
  23. import { AngularMyDatePickerModule } from 'angular-mydatepicker';
  24. import { PluginsModule } from './components/plugins/plugins.module';
  25. import { LoginComponent } from './components/login/login.component';
  26. import { TokenInterceptor } from '@app/services/token.interceptor';
  27. import { ConfirmAccountComponent } from './components/confirm-account/confirm-account.component';
  28. import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';
  29. import { LostAccountComponent } from '@app/components/lost-account/lost-account.component';
  30. import { NewAccountComponent } from '@app/components/new-account/new-account.component';
  31. import { NewPasswordComponent } from './components/new-password/new-password.component';
  32. @NgModule({
  33. declarations: [
  34. AppComponent,
  35. AdminComponent,
  36. LoginComponent,
  37. ConfirmAccountComponent,
  38. LostAccountComponent,
  39. NewAccountComponent,
  40. NewPasswordComponent,
  41. ],
  42. imports: [
  43. BrowserModule,
  44. NgbModule,
  45. ChartsModule,
  46. BrowserAnimationsModule,
  47. FormsModule,
  48. ReactiveFormsModule,
  49. HttpClientModule,
  50. SharedModule,
  51. RouterModule,
  52. AppRoutingModule,
  53. PluginsModule,
  54. NgxDatatableModule,
  55. MatSelectModule,
  56. AngularMyDatePickerModule,
  57. MatPasswordStrengthModule.forRoot(),
  58. ],
  59. providers: [
  60. { provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true },
  61. { provide: LOCALE_ID, useValue: 'es-SV' },
  62. [DatePipe],
  63. //{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
  64. //AuthenticationService,
  65. // provider used to create fake backend
  66. //fakeBackendProvider
  67. ],
  68. bootstrap: [AppComponent],
  69. })
  70. export class AppModule { }