import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { LogObjectSettingsComponent } from './log-object-settings/log-object-settings.component' ; import { LogExportdSettingsComponent } from './log-exportd-settings/log-exportd-settings.component' ; import { LogSettingsComponent } from './log-settings.component' ; import { UserSettingsResolver } from '../../management/user-settings/resolvers/user-settings-resolver.service' ; const routes = [ { path : '' , data : { breadcrumb : 'Overview' } , component : LogSettingsComponent } , { path : 'objects' , data : { breadcrumb : 'Objects' } , resolve : { userSetting : UserSettingsResolver , } , component : LogObjectSettingsComponent } , { path : 'exportdjobs' , data : { breadcrumb : 'Exportd Jobs' } , resolve : { userSetting : UserSettingsResolver , } , component : LogExportdSettingsComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class LogSettingsRoutingModule { }