What is the difference between lazy loading and eager loading in Angular 2?
Lazy loading | Eager loadingIt |
---|---|
It needs to load using LoadChildren property in path or route configuration. This leading is useful for the growth of small size applications | In order to load the eager loading module feature, it is important to import eager loading module into the application using imports metadata of decorator @NgModule |
BY Best Interview Question ON 07 Jan 2022