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

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

edit planner form with angular

  • Property mode set to 100644
File size: 766 bytes
RevLine 
[6a3a178]1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
[6c1585f]3import { LocationComponent } from './location/location.component';
[6a80231]4import { LocationsFormComponent } from './locations-form/locations-form.component';
5import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
6import { PlannerComponent } from './planner/planner.component';
[6a3a178]7
[6a80231]8const routes: Routes = [
9 {path: 'planners', component: PlannerComponent},
10 {path: 'form', component: LocationsFormComponent},
[6c1585f]11 {path: 'edit/planner/:id', component: EditPlannerComponent},
12 {path: 'locations', component: LocationComponent}
[6a80231]13];
[6a3a178]14
15@NgModule({
16 imports: [RouterModule.forRoot(routes)],
17 exports: [RouterModule]
18})
19export class AppRoutingModule { }
Note: See TracBrowser for help on using the repository browser.