What is lazy loading in angular 2?
Lazy loading allows developers to load different code pieces on demand. For instance, if you have a retail application that has different departments like garments, groceries, electronics, etc. If you load all the sections, in the beginning, your application will be slow. This is when you need lazy loading. It helps application load faster because it loads only parts that the user wants to see.
This questions is asked in every angular 2 interviews.
You can also check our blog Lazy Loading