[Explore | Trunk]: Add Previous Route Recorder to all routes.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59259 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
977c465079
commit
2d8c3ec290
|
@ -10,14 +10,9 @@ import { RouterModule } from '@angular/router';
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule, FormsModule, RouterModule, ReloadModule
|
CommonModule, FormsModule, RouterModule, ReloadModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [],
|
||||||
|
providers: [],
|
||||||
],
|
exports: []
|
||||||
providers:[
|
|
||||||
|
|
||||||
],
|
|
||||||
exports: [
|
|
||||||
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
export class LibReloadModule { }
|
export class LibReloadModule {
|
||||||
|
}
|
||||||
|
|
|
@ -2,15 +2,12 @@ import { NgModule } from '@angular/core';
|
||||||
import {RouterModule} from '@angular/router';
|
import {RouterModule} from '@angular/router';
|
||||||
|
|
||||||
import {OpenaireSearchComponent} from './search.component';
|
import {OpenaireSearchComponent} from './search.component';
|
||||||
// import {FreeGuard} from'../../login/freeGuard.guard';
|
import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||||
// import {PreviousRouteRecorder} from '../../utils/piwik/previousRouteRecorder.guard';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
{ path: '', component: OpenaireSearchComponent }
|
{ path: '', component: OpenaireSearchComponent, canDeactivate: [PreviousRouteRecorder] }
|
||||||
// { path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
|
||||||
|
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue