monitor-dashboard/src/app/home/home-routing.module.ts

22 lines
587 B
TypeScript
Raw Normal View History

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 {HomeComponent} from "./home.component";
@NgModule({
imports: [
RouterModule.forChild([
{
path: '',
component: HomeComponent,
canActivate: [FreeGuard],
canDeactivate: [PreviousRouteRecorder],
data: {hasSidebar: false}
}
])
]
})
export class HomeRoutingModule {
}