DEV Community

Discussion on: Mastering Angular 8: five things that are good to know to save your time.

Collapse
 
louis profile image
Louis Augry • Edited

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)}
Collapse
 
oleksandr profile image
Oleksandr

Thanks for pointing that!