Project

General

Profile

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

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

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

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