Project

General

Profile

1
import { RouterModule, Routes } from '@angular/router';
2
import { NgModule } from '@angular/core';
3
import { CountryOSPublicationsComponent } from './country-os-publications.component';
4
import { CountryOSPublicationsIndicatorsComponent } from './country-os-publications-indicators.component';
5

    
6
const countryOpenSciencePublicationsRoutes: Routes = [
7
  {
8
    path: '',
9
    component: CountryOSPublicationsComponent,
10
    children : [
11
      {
12
        path: '',
13
        redirectTo: 'gold-green',
14
        pathMatch: 'full',
15
      },
16
      {
17
        path: ':indicator',
18
        component: CountryOSPublicationsIndicatorsComponent,
19
      }
20
    ]
21
  },
22
];
23

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

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