2019-11-01 19:30:11 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
2019-11-27 13:14:14 +01:00
|
|
|
import {StakeholderComponent} from "./stakeholder.component";
|
2020-01-08 12:00:50 +01:00
|
|
|
import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard";
|
2019-11-01 19:30:11 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: '',
|
2019-11-27 13:14:14 +01:00
|
|
|
component: StakeholderComponent,
|
2019-11-01 19:30:11 +01:00
|
|
|
canActivate: [FreeGuard],
|
2020-01-08 12:00:50 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard]
|
2019-11-01 19:30:11 +01:00
|
|
|
}
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
2019-11-27 13:14:14 +01:00
|
|
|
export class StakeholderRoutingModule {
|
2019-11-01 19:30:11 +01:00
|
|
|
}
|