source: trip-planner-front/src/app/app-routing.module.ts@ 6fe77af

Last change on this file since 6fe77af was 6fe77af, checked in by Ema <ema_spirova@…>, 2 years ago

add location feature

  • Property mode set to 100644
File size: 1.5 KB
Line 
1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
3import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
4import { ExploreComponent } from './explore/explore.component';
5import { HomepageComponent } from './homepage/homepage.component';
6import { LoginComponent } from './homepage/login/login.component';
7import { AddLocationComponent } from './location/add-location/add-location.component';
8import { LocationDetailsComponent } from './location/location-details/location-details.component';
9import { LocationComponent } from './location/location.component';
10import { LocationsFormComponent } from './locations-form/locations-form.component';
11import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
12import { PlannerComponent } from './planner/planner.component';
13
14
15const routes: Routes = [
16 {path: 'planners', component: PlannerComponent},
17 {path: 'form', component: LocationsFormComponent},
18 {path: 'edit/planner/:id', component: EditPlannerComponent},
19 {path: 'locations', component: LocationComponent},
20 {path: '', component: HomepageComponent},
21 {path: '', component:LoginComponent},
22 {path: 'location', component: LocationDetailsComponent},
23 {path: 'explore', component: ExploreComponent},
24 {path: 'results', component: ExploreResultComponent},
25 {path: 'add-location', component: AddLocationComponent}
26];
27
28@NgModule({
29 imports: [RouterModule.forRoot(routes)],
30 exports: [RouterModule]
31})
32export class AppRoutingModule { }
Note: See TracBrowser for help on using the repository browser.