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