import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { BaseComponent } from './base/base.component' ; import { EssentialsComponent } from './essentials/essentials.component' ; import { DetailsComponent } from './details/details.component' ; const routes = [ { path : '' , component : BaseComponent , children : [ { path : '' , component : EssentialsComponent } , { path : 'details' , component : DetailsComponent } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class DeployedReplicaRoutingModule { }