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' }
];
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.