pull/1741/head
Jamie 7 years ago
parent d78e3127ea
commit a79e038995

@ -1,6 +1,4 @@
import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core";
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { RouterModule, Routes } from "@angular/router"; import { RouterModule, Routes } from "@angular/router";
import { NgbModule } from "@ng-bootstrap/ng-bootstrap"; import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
@ -21,6 +19,8 @@ import { RequestService } from "../services";
import { AuthGuard } from "../auth/auth.guard"; import { AuthGuard } from "../auth/auth.guard";
import { SharedModule } from "../shared/shared.module";
const routes: Routes = [ const routes: Routes = [
{ path: "requests", component: RequestComponent, canActivate: [AuthGuard] }, { path: "requests", component: RequestComponent, canActivate: [AuthGuard] },
{ path: "requests/:id", component: TvRequestChildrenComponent, canActivate: [AuthGuard] }, { path: "requests/:id", component: TvRequestChildrenComponent, canActivate: [AuthGuard] },
@ -28,14 +28,13 @@ const routes: Routes = [
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule,
FormsModule,
RouterModule.forChild(routes), RouterModule.forChild(routes),
NgbModule.forRoot(), NgbModule.forRoot(),
InfiniteScrollModule, InfiniteScrollModule,
ButtonModule, ButtonModule,
DialogModule, DialogModule,
TreeTableModule, TreeTableModule,
SharedModule,
], ],
declarations: [ declarations: [
RequestComponent, RequestComponent,

Loading…
Cancel
Save