import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { CommunicationComponent } from './communication.component' ; const routes = [ { path : 'communication' , component : CommunicationComponent } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes , { relativeLinkResolution : 'legacy' } ) ] , exports : [ RouterModule ] } ) export class CommunicationRoutingModule { static components = [ CommunicationComponent ] ; }