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 {
}