import { Routes } from '@angular/router' ; import { ProjectPanelCompleteComponent } from '../../panels/project-panel/project-panel-complete.component' ; import { ProjectPanelStep1Component } from '../../panels/project-panel/project-panel-step-1.component' ; import { ProjectPanelStep2Component } from '../../panels/project-panel/project-panel-step-2.component' ; import { ProjectPanelStepsEnum } from '../../shared/enums/project-panel-steps.enum' ; import { ProjectPageComponent } from './project-page.component' ; export const ProjectPageRoutes = [ { path : '' , component : ProjectPageComponent , data : { name : 'project' , title : 'FormArray and Steps' , visible : true , } , children : [ { path : '' , redirectTo : '/project/step-1' , pathMatch : 'full' , } , { path : 'step-1' , component : ProjectPanelStep1Component , data : { step : ProjectPanelStepsEnum . Step1 , } , } , { path : 'step-2' , component : ProjectPanelStep2Component , data : { step : ProjectPanelStepsEnum . Step2 , } , } , { path : 'complete' , component : ProjectPanelCompleteComponent , data : { step : ProjectPanelStepsEnum . Complete , } , } , ] , } , ] ;