open-science-observatory-ui/src/app/app-routing.module.ts

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-11-13 11:22:40 +01:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './pages/home/home.component';
import { CountriesMapOverviewComponent } from './pages/home/countries-map-overview.component';
import { CountryPageComponent } from './pages/countrypage/country-page.component';
import { MethodologyPageComponent } from './pages/methodology/methodology.component';
import { ContinentOverviewComponent } from './pages/continentoverview/continent-overview.component';
2019-11-13 11:22:40 +01:00
const routes: Routes = [
{
path: '',
redirectTo: '/home',
pathMatch: 'full'
},
{
path: 'home',
component: HomeComponent
},
{
path: 'overview-map-embed',
component: CountriesMapOverviewComponent
},
{
path: 'overview/:continentName',
component: ContinentOverviewComponent
},
{
path: 'countryDashboard/:countryName',
component: CountryPageComponent
},
{
path: 'methodology',
component: MethodologyPageComponent
},
2019-11-13 11:22:40 +01:00
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }