16 lines
458 B
TypeScript
16 lines
458 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import {MapComponent} from "./views/map/map.component";
|
|
import {HomeComponent} from "./views/home/home.component";
|
|
|
|
const routes: Routes = [
|
|
{path: '', pathMatch: 'full', component: HomeComponent},
|
|
{path: '**', component: MapComponent}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRouting { }
|