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'; import {StakeholderComponent} from "./stakeholder.component"; import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard"; @NgModule({ imports: [ RouterModule.forChild([ { path: '', component: StakeholderComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder, CanExitGuard] } ]) ] }) export class StakeholderRoutingModule { }