import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { ExportdJobSettingsListComponent } from './exportd-job-settings-list/exportd-job-settings-list.component' ; import { ExportdJobSettingsAddComponent } from './exportd-job-settings-add/exportd-job-settings-add.component' ; import { ExportdJobSettingsEditComponent } from './exportd-job-settings-edit/exportd-job-settings-edit.component' ; import { ExportdJobSettingsCopyComponent } from './exportd-job-settings-copy/exportd-job-settings-copy.component' ; import { ExportdJobLogsComponent } from './exportd-job-logs/exportd-job-logs.component' ; import { PermissionGuard } from '../auth/guards/permission.guard' ; import { UserSettingsResolver } from '../management/user-settings/resolvers/user-settings-resolver.service' ; const routes = [ { path : '' , data : { breadcrumb : 'List' , } , canActivate : [ PermissionGuard ] , resolve : { userSetting : UserSettingsResolver } , component : ExportdJobSettingsListComponent } , { path : 'add' , data : { breadcrumb : 'Add' } , canActivate : [ PermissionGuard ] , component : ExportdJobSettingsAddComponent } , { path : 'edit/:publicID' , data : { breadcrumb : 'Edit' } , canActivate : [ PermissionGuard ] , component : ExportdJobSettingsEditComponent } , { path : 'copy/:publicID' , data : { breadcrumb : 'Copy' } , canActivate : [ PermissionGuard ] , component : ExportdJobSettingsCopyComponent } , { path : 'log/:publicID' , data : { breadcrumb : 'Log' } , canActivate : [ PermissionGuard ] , component : ExportdJobLogsComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class ExportdRoutingModule { }