Project

General

Profile

1
import { RouterModule, Routes } from '@angular/router';
2
import { NgModule } from '@angular/core';
3
import { ContinentOSDatasetsComponent } from './continent-os-datasets.component';
4
import { ContinentOSDatasetsIndicatorsComponent } from './continent-os-datasets-indicators.component';
5

    
6
const continentOpenScienceDatasetsRoutes: Routes = [
7
  {
8
    path: '',
9
    component: ContinentOSDatasetsComponent,
10
    children : [
11
      {
12
        path: '',
13
        redirectTo: 'licence',
14
        pathMatch: 'full',
15
      },
16
      {
17
        path: ':indicator',
18
        component: ContinentOSDatasetsIndicatorsComponent,
19
      }
20
    ]
21
  },
22
];
23

    
24
@NgModule ({
25
  imports: [RouterModule.forChild(continentOpenScienceDatasetsRoutes)],
26
  exports: [RouterModule]
27
})
28

    
29
export class ContinentOpenScienceDatasetsRoutingModule {}
(3-3/6)