loading...

re: Mastering Angular 8: five things that are good to know to save your time. VIEW POST

FULL DISCUSSION
 

Great article !

Just in your first point

const routes: Routes = [
  {path: '', redirectTo: 'home', pathMatch: 'full'},
  {path: 'home', component: HomeComponent},
  { path: 'feature',
    loadChildren: './some-feature/some-feature.module#SomeFeatureModule'}
];

This is not Angular 8, loadChildren has changed ;)

{ path: feature, 
  loadChildren: () => import(./some-feature/some-feature.module)
                                       .then(m => m.SomeFeatureModule)}
 

Thanks for pointing that!

Code of Conduct Report abuse