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
|
Rev | Line | |
---|
[6a3a178] | 1 | import { NgModule } from '@angular/core';
|
---|
| 2 | import { RouterModule, Routes } from '@angular/router';
|
---|
[6c1585f] | 3 | import { LocationComponent } from './location/location.component';
|
---|
[6a80231] | 4 | import { LocationsFormComponent } from './locations-form/locations-form.component';
|
---|
| 5 | import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
|
---|
| 6 | import { PlannerComponent } from './planner/planner.component';
|
---|
[6a3a178] | 7 |
|
---|
[6a80231] | 8 | const 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 | })
|
---|
| 19 | export class AppRoutingModule { }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.