import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./pages/deltagare-list/deltagare-list.module').then(m => m.DeltagareListModule),
  },
  {
    path: ':genomforandeReferens',
    data: { title: 'Deltagareinformation' },
    loadChildren: () =>
      import('./pages/deltagare-details/deltagare-details.module').then(m => m.DeltagareDetailsModule),
  },
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class DeltagareRoutingModule {}
