import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { SplitComponent } from './split/split.component' ; import { ClipboardComponent } from './clipboard/clipboard.component' ; const routes = [ { path : 'split' , component : SplitComponent } , { path : 'clipboard' , component : ClipboardComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class OtherRoutingModule { }