Revision 58599
Added by Konstantinos Triantafyllou almost 4 years ago
app.module.ts | ||
---|---|---|
1 |
import { NgModule} from '@angular/core';
|
|
2 |
import { SharedModule } from './shared/shared.module';
|
|
3 |
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
|
|
4 |
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
5 |
import { CommonModule } from '@angular/common';
|
|
6 |
import { HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
|
7 |
import { AppComponent } from './app.component';
|
|
1 |
import {NgModule} from '@angular/core'; |
|
2 |
import {SharedModule} from './shared/shared.module';
|
|
3 |
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
|
4 |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
5 |
import {CommonModule} from '@angular/common';
|
|
6 |
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http'; |
|
7 |
import {AppComponent} from './app.component';
|
|
8 | 8 |
|
9 | 9 |
|
10 | 10 |
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module'; |
11 |
import { CookieLawModule } from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
|
11 |
import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
|
12 | 12 |
|
13 | 13 |
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module'; |
14 |
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
|
15 |
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
|
|
14 |
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver'; |
|
15 |
import {ErrorModule} from './openaireLibrary/error/error.module';
|
|
16 | 16 |
|
17 |
import { ErrorModule} from './openaireLibrary/error/error.module'; |
|
18 |
|
|
19 |
import { OpenaireErrorPageComponent } from './error/errorPage.component'; |
|
20 |
import { AppRoutingModule } from './app-routing.module'; |
|
21 |
import { HttpInterceptorService } from "./openaireLibrary/http-interceptor.service"; |
|
17 |
import {OpenaireErrorPageComponent} from './error/errorPage.component'; |
|
18 |
import {AppRoutingModule} from './app-routing.module'; |
|
19 |
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service"; |
|
22 | 20 |
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component"; |
23 | 21 |
|
22 |
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service'; |
|
23 |
|
|
24 | 24 |
@NgModule({ |
25 |
|
|
25 |
|
|
26 | 26 |
imports: [ |
27 | 27 |
SharedModule, |
28 |
NoopAnimationsModule, |
|
29 | 28 |
CommonModule, |
30 | 29 |
HttpClientModule, |
31 | 30 |
ErrorModule, |
... | ... | |
33 | 32 |
CookieLawModule, |
34 | 33 |
BrowserModule.withServerTransition({appId: 'my-app'}), |
35 | 34 |
AppRoutingModule, |
36 |
BrowserTransferStateModule |
|
35 |
BrowserTransferStateModule, |
|
36 |
BrowserAnimationsModule |
|
37 | 37 |
], |
38 |
declarations: [ AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent],
|
|
39 |
exports: [ AppComponent ],
|
|
40 |
providers:[
|
|
41 |
/*{ |
|
42 |
provide: REQUEST_TOKEN, |
|
43 |
useClass: EnvironmentSpecificService |
|
44 |
},*/ |
|
45 |
EnvironmentSpecificResolver, |
|
46 |
{ |
|
47 |
provide: HTTP_INTERCEPTORS, |
|
48 |
useClass: HttpInterceptorService, |
|
49 |
multi: true |
|
50 |
} |
|
51 |
], |
|
52 |
bootstrap: [AppComponent] |
|
38 |
declarations: [AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent], |
|
39 |
exports: [AppComponent],
|
|
40 |
providers: [
|
|
41 |
/*{
|
|
42 |
provide: REQUEST_TOKEN,
|
|
43 |
useClass: EnvironmentSpecificService
|
|
44 |
},*/
|
|
45 |
EnvironmentSpecificResolver,
|
|
46 |
{
|
|
47 |
provide: HTTP_INTERCEPTORS,
|
|
48 |
useClass: HttpInterceptorService,
|
|
49 |
multi: true
|
|
50 |
}
|
|
51 |
],
|
|
52 |
bootstrap: [AppComponent]
|
|
53 | 53 |
}) |
54 | 54 |
// |
55 |
export class AppModule {} |
|
55 |
export class AppModule { |
|
56 |
} |
Also available in: Unified diff
[Explore | Trunk]: Add animation module for openaire badge