import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { ShakeAlertComponent } from './shake-alert/shake-alert.component' ; const shakeAlertRoutes = [ { component : ShakeAlertComponent , path : '' } ] ; @ NgModule ( { exports : [ RouterModule ] , imports : [ RouterModule . forChild ( shakeAlertRoutes ) ] } ) export class ShakeAlertRoutingModule { }