map-alliance/src/app/app.routing.ts

16 lines
446 B
TypeScript
Raw Normal View History

2019-07-02 08:41:44 -04:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {MapComponent} from "./map/map.component";
import {HomeComponent} from "./home/home.component";
const routes: Routes = [
{path: '', pathMatch: 'full', component: HomeComponent},
{path: '**', component: MapComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRouting { }