17 lines
534 B
TypeScript
17 lines
534 B
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { RouterModule } from '@angular/router';
|
||
|
|
||
|
import {OpenairePublicationComponent } from './publication.component';
|
||
|
import {FreeGuard,PreviousRouteRecorder, IsRouteEnabled} from 'ng-openaire-library';
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [
|
||
|
RouterModule.forChild([
|
||
|
{ path: '', component: OpenairePublicationComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||
|
redirect: '/error'
|
||
|
},canDeactivate: [PreviousRouteRecorder] }
|
||
|
])
|
||
|
]
|
||
|
})
|
||
|
export class PublicationRoutingModule { }
|