| Start |
|---|
| Lazy loading example Lazy loading modules helps us decrease the startup time. With lazy loading our application does not need to load everything at once, it only needs to load what the user expects to see when the app first loads. Modules that are lazily loaded will only be loaded when the user navigates to their routes. app/app.module.ts app/app.component.ts app/app.routing.ts app/eager.component.ts There's nothing special about LazyModule other than it has its own routing and a component called LazyComponent (but it's not necessary to name your module or simliar so). app/lazy.module.ts app/lazy.routing.ts app/lazy.component.ts |
Read Article
https://develop.horje.com/learn/1434/reference