core.module.ts 597B

12345678910111213141516171819202122232425
  1. import { NgModule, LOCALE_ID } from '@angular/core';
  2. import { DatePipe, registerLocaleData } from '@angular/common';
  3. import { HttpClientModule } from '@angular/common/http';
  4. import { Title } from '@angular/platform-browser';
  5. import locale from '@angular/common/locales/en';
  6. @NgModule({
  7. imports: [HttpClientModule],
  8. exports: [],
  9. declarations: [],
  10. providers: [
  11. Title,
  12. {
  13. provide: LOCALE_ID,
  14. useValue: 'en'
  15. },
  16. DatePipe
  17. ]
  18. })
  19. export class ZipConnectCoreModule {
  20. constructor() {
  21. registerLocaleData(locale);
  22. }
  23. }