Phase D: Configure routing with root redirect to /map
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
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
0
src/app/map/map.css
Normal file
1
src/app/map/map.html
Normal file
1
src/app/map/map.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>map works!</p>
|
||||
11
src/app/map/map.ts
Normal file
11
src/app/map/map.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-map',
|
||||
imports: [],
|
||||
templateUrl: './map.html',
|
||||
styleUrl: './map.css',
|
||||
})
|
||||
export class Map {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user