20 lines
538 B
TypeScript
20 lines
538 B
TypeScript
import {NgModule} from '@angular/core';
|
|
import {RouterModule} from '@angular/router';
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
import {TopicComponent} from "./topic.component";
|
|
import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard";
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{
|
|
path: '',
|
|
component: TopicComponent,
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard]
|
|
}
|
|
])
|
|
]
|
|
})
|
|
export class TopicRoutingModule {
|
|
}
|