import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { ImportComponent } from './import.component' ; import { ImportObjectsComponent } from './import-objects/import-objects.component' ; import { ImportTypesComponent } from './import-types/import-types.component' ; import { PermissionGuard } from '../auth/guards/permission.guard' ; const routes = [ { path : '' , pathMatch : 'full' , canActivate : [ PermissionGuard ] , data : { breadcrumb : 'Overview' } , component : ImportComponent } , { path : 'object' , canActivate : [ PermissionGuard ] , data : { breadcrumb : 'Object' , right : 'base.import.object.*' } , component : ImportObjectsComponent } , { path : 'type' , canActivate : [ PermissionGuard ] , data : { breadcrumb : 'Type' , right : 'base.import.type.*' } , component : ImportTypesComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class ImportRoutingModule { }