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

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

add location feature

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[6a3a178]1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
[76712b2]3import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
[b738035]4import { ExploreComponent } from './explore/explore.component';
[59329aa]5import { HomepageComponent } from './homepage/homepage.component';
[84d0fbb]6import { LoginComponent } from './homepage/login/login.component';
[6fe77af]7import { AddLocationComponent } from './location/add-location/add-location.component';
[59329aa]8import { LocationDetailsComponent } from './location/location-details/location-details.component';
[6c1585f]9import { LocationComponent } from './location/location.component';
[6a80231]10import { LocationsFormComponent } from './locations-form/locations-form.component';
11import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
12import { PlannerComponent } from './planner/planner.component';
[6a3a178]13
[6fe77af]14
[6a80231]15const routes: Routes = [
16 {path: 'planners', component: PlannerComponent},
17 {path: 'form', component: LocationsFormComponent},
[6c1585f]18 {path: 'edit/planner/:id', component: EditPlannerComponent},
[59329aa]19 {path: 'locations', component: LocationComponent},
20 {path: '', component: HomepageComponent},
[84d0fbb]21 {path: '', component:LoginComponent},
[b738035]22 {path: 'location', component: LocationDetailsComponent},
[76712b2]23 {path: 'explore', component: ExploreComponent},
[6fe77af]24 {path: 'results', component: ExploreResultComponent},
25 {path: 'add-location', component: AddLocationComponent}
[6a80231]26];
[6a3a178]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.