app.module.ts 702 B

123456789101112131415161718192021222324
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { NgModule } from '@angular/core';
  3. import { AppComponent } from './app.component';
  4. import { TimelineComponent } from './timeline/timeline.component';
  5. import { HttpClientModule } from '@angular/common/http';
  6. import { LOCALE_ID } from '@angular/core';
  7. import { registerLocaleData } from '@angular/common';
  8. import localePt from '@angular/common/locales/pt';
  9. registerLocaleData(localePt);
  10. @NgModule({
  11. declarations: [
  12. AppComponent,
  13. TimelineComponent
  14. ],
  15. imports: [
  16. BrowserModule,
  17. HttpClientModule
  18. ],
  19. providers: [{ provide: LOCALE_ID, useValue: 'pt-BR' }],
  20. bootstrap: [AppComponent]
  21. })
  22. export class AppModule { }