Skip to content

Figure out how to make use of lazy loading in the router #6

Description

@benedikt-roth

For keeping the delivered file size low, we need to split up the application.

Therefore, it might be useful to use the Angular router module's build-in functionality.

const routes: Routes = [
  { path: '', redirectTo: 'eager', pathMatch: 'full' },
  { path: 'eager', component: EagerComponent },
  { path: 'lazy', loadChildren: 'lazy/lazy.module#LazyModule' }
];

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions