app.module.ts 2.23 KB
Newer Older
1
2
3
4
5
6
7
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { FormComponent } from './form/form.component';
8
import { ResultPageComponent } from './result-page/result-page.component';
9
10
11
import { GermplasmCardComponent } from './germplasm-card/germplasm-card.component';
import { StudyCardComponent } from './study-card/study-card.component';
import { SiteCardComponent } from './site-card/site-card.component';
12
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
13
import { NavbarComponent } from './navbar/navbar.component';
14
import { MapComponent } from './map/map.component';
15
import { NgbAlertModule, NgbPaginationModule, NgbTabsetModule, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
16
17
import { ReactiveFormsModule } from '@angular/forms';
import { SuggestionFieldComponent } from './form/suggestion-field/suggestion-field.component';
18
import { DocumentComponent } from './result-page/document/document.component';
19
20
import { ErrorComponent } from './error/error.component';
import { ErrorInterceptorService } from './error-interceptor.service';
21
import { TraitOntologyWidgetComponent } from './form/trait-ontology-widget/trait-ontology-widget.component';
22
import { FacetsComponent } from './result-page/facets/facets.component';
23
24

@NgModule({
25
26
27
28
    declarations: [
        AppComponent,
        HomeComponent,
        FormComponent,
29
        ResultPageComponent,
30
31
32
        GermplasmCardComponent,
        StudyCardComponent,
        SiteCardComponent,
33
        NavbarComponent,
34
        MapComponent,
35
        SuggestionFieldComponent,
36
        DocumentComponent,
37
        ErrorComponent,
38
39
        TraitOntologyWidgetComponent,
        FacetsComponent
40
41
42
43
    ],
    imports: [
        BrowserModule,
        AppRoutingModule,
44
        NgbTypeaheadModule,
45
        NgbPaginationModule,
46
        NgbTabsetModule,
47
        NgbAlertModule,
48
        ReactiveFormsModule,
49
50
        HttpClientModule
    ],
51
52
53
    providers: [
        { provide: HTTP_INTERCEPTORS, useExisting: ErrorInterceptorService, multi: true }
    ],
54
    bootstrap: [AppComponent]
55
})
56
57
export class AppModule {
}