2019-09-30 14:51:38 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import{HomeComponent} from './home.component';
|
|
|
|
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
2022-02-24 17:43:20 +01:00
|
|
|
import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard";
|
2019-09-30 14:51:38 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2022-02-24 17:43:20 +01:00
|
|
|
{ path: '', component: HomeComponent, canDeactivate: [PreviousRouteRecorder, CanExitGuard] }
|
2019-09-30 14:51:38 +02:00
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class HomeRoutingModule { }
|