import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule, Routes } from "@angular/router";
import { SurveyorComponent } from "./surveyor.component";
import {
  NgbDropdownModule,
  NgbPaginationModule,
} from "@ng-bootstrap/ng-bootstrap";
import { ReactiveFormsModule } from "@angular/forms";

const routes: Routes = [
  {
    path: "",
    component: SurveyorComponent,
    children: [],
  },
  {
    path: ":id",
    loadChildren: () =>
      import("./detail/detail.module").then((m) => m.DetailModule),
  },
];

@NgModule({
  declarations: [SurveyorComponent],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    ReactiveFormsModule,
    NgbDropdownModule,
    NgbPaginationModule,
  ],
})
export class SurveyorModule {}
