1 |
57506
|
k.triantaf
|
import {NgModule} from '@angular/core';
|
2 |
|
|
import {RouterModule} from '@angular/router';
|
3 |
|
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
4 |
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
5 |
|
|
import {TopicComponent} from "./topic.component";
|
6 |
|
|
|
7 |
|
|
@NgModule({
|
8 |
|
|
imports: [
|
9 |
|
|
RouterModule.forChild([
|
10 |
|
|
{
|
11 |
|
|
path: '',
|
12 |
|
|
component: TopicComponent,
|
13 |
|
|
canActivate: [FreeGuard],
|
14 |
|
|
canDeactivate: [PreviousRouteRecorder]
|
15 |
|
|
}
|
16 |
|
|
])
|
17 |
|
|
]
|
18 |
|
|
})
|
19 |
|
|
export class TopicRoutingModule {
|
20 |
|
|
}
|