[Explore | Trunk]: Add animation module for openaire badge
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58599 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
d140717461
commit
36ff7b58a8
|
@ -57,6 +57,7 @@ export class AppComponent {
|
|||
private router: Router, private userManagementService: UserManagementService) {
|
||||
router.events.forEach((event) => {
|
||||
if (event instanceof NavigationStart) {
|
||||
console.log(event.url);
|
||||
HelperFunctions.scroll();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,31 +1,30 @@
|
|||
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 {NgModule} from '@angular/core';
|
||||
import {SharedModule} from './shared/shared.module';
|
||||
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
||||
import {BrowserAnimationsModule} 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 {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
||||
|
||||
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
||||
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
||||
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
|
||||
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
||||
import {ErrorModule} from './openaireLibrary/error/error.module';
|
||||
|
||||
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";
|
||||
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
||||
import {AppRoutingModule} from './app-routing.module';
|
||||
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
||||
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
||||
|
||||
@NgModule({
|
||||
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
|
||||
|
||||
@NgModule({
|
||||
|
||||
imports: [
|
||||
SharedModule,
|
||||
NoopAnimationsModule,
|
||||
CommonModule,
|
||||
HttpClientModule,
|
||||
ErrorModule,
|
||||
|
@ -33,23 +32,25 @@ import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.
|
|||
CookieLawModule,
|
||||
BrowserModule.withServerTransition({appId: 'my-app'}),
|
||||
AppRoutingModule,
|
||||
BrowserTransferStateModule
|
||||
BrowserTransferStateModule,
|
||||
BrowserAnimationsModule
|
||||
],
|
||||
declarations: [ AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent],
|
||||
exports: [ AppComponent ],
|
||||
providers:[
|
||||
/*{
|
||||
provide: REQUEST_TOKEN,
|
||||
useClass: EnvironmentSpecificService
|
||||
},*/
|
||||
EnvironmentSpecificResolver,
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: HttpInterceptorService,
|
||||
multi: true
|
||||
}
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
declarations: [AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent],
|
||||
exports: [AppComponent],
|
||||
providers: [
|
||||
/*{
|
||||
provide: REQUEST_TOKEN,
|
||||
useClass: EnvironmentSpecificService
|
||||
},*/
|
||||
EnvironmentSpecificResolver,
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: HttpInterceptorService,
|
||||
multi: true
|
||||
}
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
//
|
||||
export class AppModule {}
|
||||
export class AppModule {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue