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