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

16 lines
458 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';
2019-07-22 11:59:30 -04:00
import {MapComponent} from "./views/map/map.component";
import {HomeComponent} from "./views/home/home.component";
2019-07-02 08:41:44 -04:00
const routes: Routes = [
{path: '', pathMatch: 'full', component: HomeComponent},
{path: '**', component: MapComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRouting { }