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

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

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