import { RouterModule , Routes } from '@angular/router' ; import { DictionaryComponent } from '.' ; const routes = [ { path : 'dictionary' , component : DictionaryComponent , } , ] ; export const DictionaryRoutes = RouterModule . forChild ( routes ) ;