import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { MomentTensorComponent } from './moment-tensor/moment-tensor.component' ; const momentTensorRoutes = [ { component : MomentTensorComponent , path : '' } ] ; @ NgModule ( { exports : [ RouterModule ] , imports : [ RouterModule . forChild ( momentTensorRoutes ) ] } ) export class MomentTensorRoutingModule { }