NetanelBasal
2/11/2018 - 5:11 PM

app-routing.module.ts

const routes = RouterModule.forRoot([
  {path: "lazy", loadChildren: "app/lazy/lazy.module#LazyModule"},
  {path: "", pathMatch: "full", component: HomeComponent},
]);

@NgModule({
  imports: [routes],
  exports: [RouterModule]
})
export class AppRoutingModule {
}