app.module.ts 1.52 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';
Exbrayat Cédric's avatar
Exbrayat Cédric committed
6
7
8
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';
import { NgbPaginationModule, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
9

Exbrayat Cédric's avatar
Exbrayat Cédric committed
10
import { routes } from './app.routes';
11
import { AppComponent } from './app.component';
Exbrayat Cédric's avatar
Exbrayat Cédric committed
12
13
14
15
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
16
17
import { AggregationsComponent } from './aggregations/aggregations.component';
import { AggregationComponent } from './aggregation/aggregation.component';
18
19

registerLocaleData(localeFr);
20
21
22

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