NetanelBasal
5/11/2017 - 8:56 AM

ngrx4-app.routing.ts

const routes: Routes = [
  { path: '', redirectTo: 'home', pathMatch: 'full' },
  {
    path: 'home',
    loadChildren: './home-page/home-page.module#HomePageModule'
  },
  {
    path: 'todos',
    loadChildren: './todos-page/todos-page.module#TodosPageModule'
  }
];

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