app.module.ts 1.26 KB
Newer Older
1
import { BrowserModule } from '@angular/platform-browser';
2
import { LOCALE_ID, NgModule } from '@angular/core';
Exbrayat Cédric's avatar
Exbrayat Cédric committed
3
4
5
import { RouterModule } from '@angular/router';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
6

Exbrayat Cédric's avatar
Exbrayat Cédric committed
7
import { routes } from './app.routes';
8
import { AppComponent } from './app.component';
Exbrayat Cédric's avatar
Exbrayat Cédric committed
9
10
11
12
import { HomeComponent } from './home/home.component';
import { SearchComponent } from './search/search.component';
import { GeneticResourcesComponent } from './genetic-resources/genetic-resources.component';
import { GeneticResourceComponent } from './genetic-resource/genetic-resource.component';
Exbrayat Cédric's avatar
Exbrayat Cédric committed
13
import { NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
14
15
16
17
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';

registerLocaleData(localeFr);
18
19
20

@NgModule({
  declarations: [
Exbrayat Cédric's avatar
Exbrayat Cédric committed
21
22
23
24
25
    AppComponent,
    HomeComponent,
    SearchComponent,
    GeneticResourcesComponent,
    GeneticResourceComponent
26
27
  ],
  imports: [
Exbrayat Cédric's avatar
Exbrayat Cédric committed
28
29
30
    BrowserModule,
    RouterModule.forRoot(routes),
    ReactiveFormsModule,
Exbrayat Cédric's avatar
Exbrayat Cédric committed
31
32
    HttpClientModule,
    NgbPaginationModule.forRoot()
33
  ],
34
35
36
  providers: [
    { provide: LOCALE_ID, useValue: 'fr-FR' }
  ],
37
38
39
  bootstrap: [AppComponent]
})
export class AppModule { }