NgModules

The NgModules tab displays the AppModule and any other submodule that is currently loaded into memory:

  1. Launch the /home route of the app
  2. Observe the NgModules tab, as follows:
Augury NgModules

You'll note that only the AppModule is loaded. However, since our application has a lazy-loaded architecture, none of our other modules are yet loaded.

  1. Navigate to a page in the ManagerModule
  2. Then, navigate to a page in the UserModule
  3. Finally, navigate back to the /home route
  1. Observe the NgModules tab, as shown:
Augury NgModules with Three Modules
  1. Now, you'll observe that three modules have been loaded into memory.

NgModules is an important tool to visualize the impact of your design and architecture.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.4.181