1 |
49720
|
argiro.kok
|
import { NgModule } from '@angular/core';
|
2 |
|
|
import { RouterModule } from '@angular/router';
|
3 |
|
|
import { LoginGuard} from'../../login/loginGuard.guard';
|
4 |
|
|
|
5 |
|
|
import { LinkingGenericComponent } from './linkingGeneric.component';
|
6 |
|
|
import {PreviousRouteRecorder} from'../../utils/piwik/previousRouteRecorder.guard';
|
7 |
|
|
import {IsRouteEnabled} from '../../error/isRouteEnabled.guard';
|
8 |
|
|
|
9 |
|
|
@NgModule({
|
10 |
|
|
imports: [
|
11 |
|
|
RouterModule.forChild([
|
12 |
|
|
{ path: '', component: LinkingGenericComponent, canActivate: [IsRouteEnabled, LoginGuard], data: {
|
13 |
|
|
redirect: '/error'
|
14 |
|
|
}, canDeactivate: [PreviousRouteRecorder]},
|
15 |
|
|
|
16 |
|
|
])
|
17 |
|
|
]
|
18 |
|
|
})
|
19 |
|
|
export class LinkingRoutingModule { }
|