import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { FilemanagerComponent } from './filemanager.component' ; const routes = [ { path : '' , pathMatch : 'full' , data : { breadcrumb : 'Explorer' } , component : FilemanagerComponent } , { path : 'explorer' , data : { breadcrumb : 'Explorer' } , component : FilemanagerComponent } ] ; @ NgModule ( { declarations : [ ] , imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class FilemanagerRoutingModule { }