Phase D: Configure routing with root redirect to /map

This commit is contained in:
2026-02-14 14:16:11 -05:00
parent 6e0d533538
commit 6d5846cd85
4 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
import { Routes } from '@angular/router'; import { Routes } from '@angular/router';
import { MapComponent } from './map/map';
export const routes: Routes = []; export const routes: Routes = [
{ path: '', redirectTo: '/map', pathMatch: 'full' },
{ path: 'map', component: MapComponent }
];

0
src/app/map/map.css Normal file
View File

1
src/app/map/map.html Normal file
View File

@@ -0,0 +1 @@
<p>map works!</p>

11
src/app/map/map.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-map',
imports: [],
templateUrl: './map.html',
styleUrl: './map.css',
})
export class Map {
}