import { Routes , RouterModule } from '@angular/router' ; import { HomeComponent } from './home/index' ; const appRoutes = [ { path : '' , component : HomeComponent } , { path : '**' , redirectTo : '' } ] ; export const routing = RouterModule . forRoot ( appRoutes ) ;