1
|
import { NgModule } from '@angular/core';
|
2
|
import { Routes, RouterModule } from '@angular/router';
|
3
|
import { HomeComponent } from './pages/home/home.component';
|
4
|
import { CountriesMapOverviewComponent } from './pages/home/countries-map-overview.component';
|
5
|
import {CountryPageComponent} from './pages/countrypage/country-page.component';
|
6
|
|
7
|
const routes: Routes = [
|
8
|
{
|
9
|
path: '',
|
10
|
redirectTo: '/home',
|
11
|
pathMatch: 'full'
|
12
|
},
|
13
|
{
|
14
|
path: 'home',
|
15
|
component: HomeComponent
|
16
|
},
|
17
|
{
|
18
|
path: 'overview-map-embed',
|
19
|
component: CountriesMapOverviewComponent
|
20
|
},
|
21
|
{
|
22
|
path: 'countryDashboard/:countryName',
|
23
|
component: CountryPageComponent
|
24
|
},
|
25
|
];
|
26
|
|
27
|
@NgModule({
|
28
|
imports: [RouterModule.forRoot(routes)],
|
29
|
exports: [RouterModule]
|
30
|
})
|
31
|
export class AppRoutingModule { }
|