1
|
import { RouterModule, Routes } from '@angular/router';
|
2
|
import { NgModule } from '@angular/core';
|
3
|
import { ContinentOSPublicationsComponent } from './publications/continent-os-publications.component';
|
4
|
import { ContinentOpenScienceComponent } from './continent-open-science.component';
|
5
|
import { ContinentOSDatasetsComponent } from './datasets/continent-os-datasets.component';
|
6
|
import { ContinentOSSoftwareComponent } from './software/continent-os-software.component';
|
7
|
import { ContinentOSORPComponent } from './other-research-products/continent-os-orp.component';
|
8
|
|
9
|
|
10
|
const continentOpenScienceRoutes: Routes = [
|
11
|
{
|
12
|
path: '',
|
13
|
component: ContinentOpenScienceComponent,
|
14
|
children : [
|
15
|
{
|
16
|
path: '',
|
17
|
redirectTo: 'publications',
|
18
|
pathMatch: 'full',
|
19
|
},
|
20
|
{
|
21
|
path: 'publications',
|
22
|
loadChildren: () => import('./publications/continent-os-publications.module').then(m => m.ContinentOpenSciencePublicationsModule),
|
23
|
// component: ContinentOSPublicationsComponent,
|
24
|
},
|
25
|
{
|
26
|
path: 'datasets',
|
27
|
loadChildren: () => import('./datasets/continent-os-datasets.module').then(m => m.ContinentOpenScienceDatasetsModule),
|
28
|
// component: ContinentOSDatasetsComponent,
|
29
|
},
|
30
|
{
|
31
|
path: 'software',
|
32
|
loadChildren: () => import('./software/continent-os-software.module').then(m => m.ContinentOpenScienceSoftwareModule),
|
33
|
// component: ContinentOSSoftwareComponent,
|
34
|
},
|
35
|
{
|
36
|
path: 'other-research-products',
|
37
|
loadChildren: () => import('./other-research-products/continent-os-orp.module').then(m => m.ContinentOpenScienceORPModule),
|
38
|
// component: ContinentOSORPComponent,
|
39
|
},
|
40
|
]
|
41
|
},
|
42
|
];
|
43
|
|
44
|
@NgModule ({
|
45
|
imports: [RouterModule.forChild(continentOpenScienceRoutes)],
|
46
|
exports: [RouterModule]
|
47
|
})
|
48
|
|
49
|
export class ContinentOpenScienceRoutingModule {}
|