1 |
50428
|
argiro.kok
|
import { NgModule } from '@angular/core';
|
2 |
|
|
import { RouterModule } from '@angular/router';
|
3 |
|
|
|
4 |
|
|
import{CommunityComponent} from './community.component';
|
5 |
50763
|
argiro.kok
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
6 |
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
7 |
50428
|
argiro.kok
|
|
8 |
|
|
@NgModule({
|
9 |
|
|
imports: [
|
10 |
|
|
RouterModule.forChild([
|
11 |
|
|
{ path: '', component: CommunityComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
12 |
|
|
|
13 |
|
|
])
|
14 |
|
|
]
|
15 |
|
|
})
|
16 |
|
|
export class CommunityRoutingModule { }
|