[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) {
|
private router: Router, private userManagementService: UserManagementService) {
|
||||||
router.events.forEach((event) => {
|
router.events.forEach((event) => {
|
||||||
if (event instanceof NavigationStart) {
|
if (event instanceof NavigationStart) {
|
||||||
|
console.log(event.url);
|
||||||
HelperFunctions.scroll();
|
HelperFunctions.scroll();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,31 +1,30 @@
|
||||||
import { NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
import { SharedModule } from './shared/shared.module';
|
import {SharedModule} from './shared/shared.module';
|
||||||
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
|
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||||
import { CommonModule } from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import { HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
||||||
import { AppComponent } from './app.component';
|
import {AppComponent} from './app.component';
|
||||||
|
|
||||||
|
|
||||||
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
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 {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
||||||
import { EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
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 { ErrorModule} from './openaireLibrary/error/error.module';
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
||||||
|
import {AppRoutingModule} from './app-routing.module';
|
||||||
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
|
||||||
import { HttpInterceptorService } from "./openaireLibrary/http-interceptor.service";
|
|
||||||
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
||||||
|
|
||||||
@NgModule({
|
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
NoopAnimationsModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
ErrorModule,
|
ErrorModule,
|
||||||
|
@ -33,23 +32,25 @@ import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.
|
||||||
CookieLawModule,
|
CookieLawModule,
|
||||||
BrowserModule.withServerTransition({appId: 'my-app'}),
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
BrowserTransferStateModule
|
BrowserTransferStateModule,
|
||||||
|
BrowserAnimationsModule
|
||||||
],
|
],
|
||||||
declarations: [ AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent],
|
declarations: [AppComponent, OpenaireErrorPageComponent, PageURLResolverComponent],
|
||||||
exports: [ AppComponent ],
|
exports: [AppComponent],
|
||||||
providers:[
|
providers: [
|
||||||
/*{
|
/*{
|
||||||
provide: REQUEST_TOKEN,
|
provide: REQUEST_TOKEN,
|
||||||
useClass: EnvironmentSpecificService
|
useClass: EnvironmentSpecificService
|
||||||
},*/
|
},*/
|
||||||
EnvironmentSpecificResolver,
|
EnvironmentSpecificResolver,
|
||||||
{
|
{
|
||||||
provide: HTTP_INTERCEPTORS,
|
provide: HTTP_INTERCEPTORS,
|
||||||
useClass: HttpInterceptorService,
|
useClass: HttpInterceptorService,
|
||||||
multi: true
|
multi: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
//
|
//
|
||||||
export class AppModule {}
|
export class AppModule {
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue