import { Routes , RouterModule } from '@angular/router' ; import { HomeComponent } from './home/home.component' ; import { SubrouteComponent } from './subroute/subroute.component' ; export const ROUTES = [ { path : '' , component : HomeComponent } , { path : 'subroute' , component : SubrouteComponent } ] ;