import { RouterModule , Routes } from '@angular/router' ; import { HomeComponent } from './components/home.component' ; const routes = [ { path : 'home' , component : HomeComponent } ] ; export const HomeRoutes = RouterModule . forChild ( routes ) ;