Explain the concept of lazy loading in Angular 2?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by Priyag Chaudhary

    Lazy Loading in Angular 2 is used to delay the loading of an object until it is required by the application.

    With lazy loading in Angular, you can split your Angular application into small bundles that can be loaded as required (dynamically). While using it, the Angular router pre-loads the other parts of the application in the background when the user is interacting with the part of the app that is loaded. As in other frameworks, lazy loading has several benefits in angular js such as application loading is fast as there are fewer modules to load initially, on-demand loading of modules and faster navigation experience for the user.

Related Questions

Please Login or Register to leave a response.

Related Questions

Angular 2 Interview Questions

What is Angular 2 ?

Angular 2 is a completely revived component-based framework in which an application is a tree of loosely coupled compon..

Angular 2 Interview Questions

List some advantages of Angular 2 over Angular1.

Angular 2 is a re-written version of Angular1 and not an update. The best way to compare Angular 2 and Angular 1 is by f..

Angular 2 Interview Questions

What are the new features of Angular 2?

Angular 2 is a platform that encompasses a wide range of capabilities. Some new features were added in Angular 2 which i..