import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { PagerComponent } from './pager/pager.component' ; const pagerRoutes = [ { component : PagerComponent , path : '' } ] ; @ NgModule ( { exports : [ RouterModule ] , imports : [ RouterModule . forChild ( pagerRoutes ) ] } ) export class PagerRoutingModule { }