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';
|
2019-11-22 11:48:20 +01:00
|
|
|
import {CountryPageComponent} from './pages/countrypage/country-page.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
|
|
|
|
},
|
2019-11-22 11:48:20 +01:00
|
|
|
{
|
|
|
|
path: 'countryDashboard/:countryName',
|
|
|
|
component: CountryPageComponent
|
|
|
|
},
|
2019-11-13 11:22:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|