funky-framadate-front/src/app/config/Routes.ts

30 lines
1.5 KiB
TypeScript
Raw Normal View History

import {FormContainerComponent} from '../form-container/form-container.component';
2019-08-10 16:57:36 +02:00
import {KindComponent} from '../pages/kind/kind.component';
2019-08-10 16:20:59 +02:00
import {DatesComponent} from '../pages/dates/dates.component';
import {VisibilityComponent} from '../pages/visibility/visibility.component';
import {ResumeComponent} from '../pages/resume/resume.component';
import {PicturesComponent} from '../pages/pictures/pictures.component';
import {EndConfirmationComponent} from '../pages/end-confirmation/end-confirmation.component';
2019-08-10 17:41:01 +02:00
import {AnswersComponent} from '../pages/answers/answers.component';
import {CreateOrRetrieveComponent} from '../page/create-or-retrieve/create-or-retrieve.component';
import {BaseComponent} from '../pages/base-page/base.component';
/**
2019-08-10 16:20:59 +02:00
* each step in the form is a component
*/
export const Routes =
2019-08-10 16:20:59 +02:00
[
{path: '', component: CreateOrRetrieveComponent},
2019-08-10 16:20:59 +02:00
{path: 'home', component: FormContainerComponent},
{path: 'base', component: BaseComponent},
{path: 'step/creation', component: CreateOrRetrieveComponent},
2019-08-10 16:20:59 +02:00
{path: 'step/date', component: DatesComponent},
{path: 'step/kind', component: KindComponent},
2019-08-10 17:41:01 +02:00
{path: 'step/answers', component: AnswersComponent},
{path: 'step/pictures', component: PicturesComponent},
{path: 'step/visibility', component: VisibilityComponent},
2019-08-10 18:38:07 +02:00
{path: 'step/resume', component: ResumeComponent},
{path: 'step/end', component: EndConfirmationComponent},
2019-08-10 16:20:59 +02:00
]
;