Angular #34 - Lazy Loading (Consider lazy loading a design pattern that loads NgModules as needed)

Опубликовано: 08 Октябрь 2024
на канале: Let's Build With Code
79
4

Click to watch Angular Playlist :    • Angular  

Lazy Loading : By default, NgModules are eagerly loaded. This means that as soon as the application loads, so do all the NgModules, whether they are immediately necessary or not. For large applications with lots of routes, consider lazy loading —a design pattern that loads NgModules as needed. Lazy loading helps keep initial bundle sizes smaller, which in turn helps decrease load times.