Loading topic
import and export statements, and have run ng build before. It covers the one language feature that makes lazy loading possible: the dynamic import() expression.3 min readng build. It also assumes you know that import() returns a Promise.3 min readng build. It covers loadChildren, which lazy loads a whole group of routes as one chunk.3 min readprovideRouter, and use inject(). You should also have seen loadChildren from the previous chapter. Here you will learn how to give a lazy feature area its own services, and what that does to the bundle and to service 3 min readloadComponent and loadChildren do, and you have run ng build. You should also be comfortable reading basic RxJS types such as Observable.3 min readloadChildren does, and you have used provideRouter in a standalone application. It builds on the previous chapter, where PreloadAllModules fetched every lazy chunk in the background.3 min readloadChildren to lazy load a route group. It also assumes you have run ng build before.3 min readloadChildren works with a Routes array, and the basics of NgModules (@NgModule, declarations, imports). If you have only used standalone components, this chapter shows what you will meet in older code bases and3 min readloadComponent and loadChildren, and run ng build with the Angular CLI. Here you will confirm that your lazy routes produced separate chunks, and learn how to read the build report.3 min readng build. It covers the mistakes that quietly pull lazy code back into the main bundle, and how to spot each one.4 min read