56 lines
2.0 KiB
TypeScript
Executable File
56 lines
2.0 KiB
TypeScript
Executable File
import { NgModule} from '@angular/core';
|
|
import { SharedModule } from './shared/shared.module';
|
|
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
|
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { CommonModule } from '@angular/common';
|
|
import { HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
|
import { AppComponent } from './app.component';
|
|
|
|
|
|
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
|
import { CookieLawModule } from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
|
|
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
|
import {FeedbackModule} from './openaireLibrary/sharedComponents/feedback/feedback.module';
|
|
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
|
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
|
|
|
|
import { ErrorModule} from './openaireLibrary/error/error.module';
|
|
|
|
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { HttpInterceptorService } from "./openaireLibrary/http-interceptor.service";
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
SharedModule,
|
|
NoopAnimationsModule,
|
|
CommonModule,
|
|
HttpClientModule,
|
|
ErrorModule,
|
|
NavigationBarModule, FeedbackModule, BottomModule,
|
|
CookieLawModule,
|
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
|
AppRoutingModule,
|
|
BrowserTransferStateModule
|
|
],
|
|
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
|
exports: [ AppComponent ],
|
|
providers:[
|
|
/*{
|
|
provide: REQUEST_TOKEN,
|
|
useClass: EnvironmentSpecificService
|
|
},*/
|
|
EnvironmentSpecificResolver,
|
|
{
|
|
provide: HTTP_INTERCEPTORS,
|
|
useClass: HttpInterceptorService,
|
|
multi: true
|
|
}
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
//
|
|
export class AppModule {}
|