1
|
import {NgModule} from '@angular/core';
|
2
|
import {RouterModule} from '@angular/router';
|
3
|
import {OpenaireSearchOrganizationsComponent} from './searchOrganizations.component';
|
4
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
5
|
|
6
|
|
7
|
@NgModule({
|
8
|
imports: [
|
9
|
RouterModule.forChild([
|
10
|
{ path: '', component: OpenaireSearchOrganizationsComponent, data: {
|
11
|
redirect: '/error'
|
12
|
}, canDeactivate: [PreviousRouteRecorder] }
|
13
|
|
14
|
])
|
15
|
]
|
16
|
})
|
17
|
export class SearchOrganizationsRoutingModule { }
|