Project

General

Profile

1 57592 stefania.m
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
6
const routes: Routes = [
7
  {
8
    path: '',
9
    redirectTo: '/home',
10
    pathMatch: 'full'
11
  },
12
  {
13
    path: 'home',
14
    component: HomeComponent
15
  },
16
  {
17
    path: 'overview-map-embed',
18
    component: CountriesMapOverviewComponent
19
  },
20
];
21
22
@NgModule({
23
  imports: [RouterModule.forRoot(routes)],
24
  exports: [RouterModule]
25
})
26
export class AppRoutingModule { }