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
|
Line | |
---|
1 | import { NgModule } from '@angular/core';
|
---|
2 | import { RouterModule, Routes } from '@angular/router';
|
---|
3 | import { LocationComponent } from './location/location.component';
|
---|
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';
|
---|
7 |
|
---|
8 | const routes: Routes = [
|
---|
9 | {path: 'planners', component: PlannerComponent},
|
---|
10 | {path: 'form', component: LocationsFormComponent},
|
---|
11 | {path: 'edit/planner/:id', component: EditPlannerComponent},
|
---|
12 | {path: 'locations', component: LocationComponent}
|
---|
13 | ];
|
---|
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.