-
Notifications
You must be signed in to change notification settings - Fork 1
/
app-routing.module.ts
40 lines (38 loc) · 938 Bytes
/
app-routing.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { PathwayComponent } from "./pages/pathway/pathway.component";
import { MapComponent } from "./components/map/map.component";
import { ResponsePageIframeComponent } from "./pages/response-page-iframe/response-page-iframe.component";
import { MainComponent } from "./pages/main/main.component";
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
const routes: Routes = [
{
path: "home",
component: MainComponent,
},
{
path: "result",
component: ResponsePageIframeComponent,
},
{
path: "about",
component: ResponsePageIframeComponent,
},
{
path: "maps",
component: MapComponent,
},
{
path: "pathway",
component: PathwayComponent,
},
{
path: "",
redirectTo: "home",
pathMatch: "full",
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
})
export class AppRoutingModule {}