openaire-library/deposit/deposit-grant-redirect/deposit-routing.module.ts

18 lines
527 B
TypeScript

import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import {DepositComponent} from "./deposit.component";
import {LoginGuard} from "../../login/loginGuard.guard";
import {PreviousRouteRecorder} from "../../utils/piwik/previousRouteRecorder.guard";
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', component: DepositComponent,
// canActivate: [LoginGuard],
canDeactivate: [PreviousRouteRecorder] }
])
]
})
export class DepositRoutingModule { }