main.routes.ts 1.79 KB
Newer Older
1 2 3 4 5 6 7
import {
  Routes,
  RouterModule,
} from '@angular/router';

import {CamelCasePipe} from '../pipes/camelcase';
import Form3 from '../components/form-controls/form3';
8
import StudentApplicationMain from '../components/student-application-form/application.form.main';
9 10
import StudentsList from '../components/students/students-list';
import Home from '../components/home';
11
import CourseFieldsSelect from '../components/student-application-form/course.fields.select';
Open Source Developer's avatar
Open Source Developer committed
12
import EpalClassesSelect from '../components/student-application-form/epal.class.select';
13
import SectorFieldsSelect from '../components/student-application-form/sector.fields.select';
14
import RegionSchoolsSelect from '../components/student-application-form/region.schools.select';
15 16
import SectorCoursesSelect from '../components/student-application-form/sector.courses.select';
import ApplicationPreview from '../components/student-application-form/application.preview';
17 18 19 20

export const MainRoutes: Routes = [
  { path: '', component: Home },
  { path: 'form3', component: Form3 },
21
  { path: 'student-application-form-main', component: StudentApplicationMain },
22
  { path: 'students-list', component: StudentsList },
23
  { path: 'course-fields-select', component: CourseFieldsSelect },
Open Source Developer's avatar
Open Source Developer committed
24
  { path: 'epal-class-select', component: EpalClassesSelect },
25 26 27 28
  { path: 'sector-fields-select', component: SectorFieldsSelect },
  { path: 'region-schools-select', component: RegionSchoolsSelect },
  { path: 'sectorcourses-fields-select', component: SectorCoursesSelect },
  { path: 'application-preview', component: ApplicationPreview }
29 30 31 32 33 34 35
];

export const MainDeclarations = [
  CamelCasePipe,
  Form3,
  StudentsList,
  Home,
36
  CourseFieldsSelect,
Open Source Developer's avatar
Open Source Developer committed
37
  EpalClassesSelect,
38
  SectorFieldsSelect,
39
  RegionSchoolsSelect,
40 41 42
  SectorCoursesSelect,
  StudentApplicationMain,
  ApplicationPreview
43
];