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