import { Routes , RouterModule } from "@angular/router" ; import { ModuleWithProviders } from "@angular/core" ; const appRoutes = [ { path : "" , redirectTo : "home" , pathMatch : "full" } , { path : "product" , loadChildren : "app/product/product.module#ProductModule" } ] ; export const routing = RouterModule . forRoot ( appRoutes ) ;