Why are multiple NgModules used in angular?

942    Asked by Shrutikapoor in Python , Asked on Jan 4, 2020
Answered by Shruti kapoor

There are several benefits of using multiple NgModules, some of them are mentioned below.

  1. The modules help us to organize an application into associative blocks of functionality.
  2. First one is organizing an application code. If we are putting around a lot of resource files in the default app module and see the happening.
  3. And the second one is - It opens the possibility of lazy loading via the router.
  4. NgModule is used to simplify the ways we define and manage the dependencies in your applications and also you can consolidate different components and services into cohesive blocks of functionality.


Your Answer

Interviews

Parent Categories