Aucune description

candidat.module.ts 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { NgModule } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. import { CandidatListComponent } from './candidat-list/candidat-list.component';
  4. import { RouterModule, Routes } from '@angular/router';
  5. import { CandidatSearchComponent } from './candidat-search/candidat-search.component';
  6. import { CandidatsResolver } from 'src/app/shared/resolver/candidats.resolver';
  7. import { CandidatDetailComponent } from './candidat-detail/candidat-detail.component';
  8. import { CandidatDetailResolver } from 'src/app/shared/resolver/candidat-detail.resolver';
  9. import { ReactiveFormsModule } from '@angular/forms';
  10. import { CandidatSidebarComponent } from './candidat-sidebar/candidat-sidebar.component';
  11. export const routes: Routes = [
  12. {
  13. path: 'candidat/candidat-list',
  14. component: CandidatListComponent,
  15. resolve: {
  16. Candidats: CandidatsResolver
  17. },
  18. },
  19. {
  20. path: '/candidat/candidat-detail/:candidatId',
  21. component: CandidatDetailComponent,
  22. resolve: {
  23. candidat: CandidatDetailResolver
  24. },
  25. },
  26. {
  27. path: '/candidat/candidat-sidebar',
  28. component: CandidatSidebarComponent
  29. }
  30. ];
  31. @NgModule({
  32. declarations: [
  33. CandidatListComponent,
  34. CandidatSearchComponent,
  35. CandidatDetailComponent,
  36. CandidatSidebarComponent
  37. ],
  38. imports: [
  39. CommonModule,
  40. RouterModule.forChild(routes),
  41. ReactiveFormsModule
  42. ],
  43. exports: [RouterModule]
  44. })
  45. export class CandidatModule { }

Powered by TurnKey Linux.