import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { IncomingNumberComponent } from './incoming_number.component' ; import { FormsIncomingNumberComponent } from './incoming_number-component' ; import { ForwardIncomingNumberComponent } from './forward-incoming_number-component' ; const routes = [ { path : '' , component : IncomingNumberComponent , children : [ { path : 'incoming_number' , component : FormsIncomingNumberComponent , } , { path : 'incoming_number/:id/forward' , component : ForwardIncomingNumberComponent , } ] , } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) , ] , exports : [ RouterModule , ] , } ) export class IncomingNumberRoutingModule { } export const routedComponents = [ IncomingNumberComponent , FormsIncomingNumberComponent , ForwardIncomingNumberComponent , ] ;