The more complex your app is, the more important it is to adhere to the separation of concerns design principle. In software engineering, separation of concerns is a design principle where you split your program or app up into different areas of intent. For instance, in an Angular app for showing movie ratings, you may have the following pieces of functionality:

  • Display movie information
  • Provide user profiles
  • Fetch movie information
  • Allow rating of movies
  • Recommend new movies

At first glance, this seems straightforward. However, even an app that only needs the above features can quickly become unwieldy without properly separating each piece of functionality into its own self-contained area within the code. Modules are how you ensure that your Angular app follows this design principle. In this guide, you will learn about the Angular module system. You will learn how you can use this system to properly structure your app with special focus on the root app module.

#angular #web-development

Understanding the Angular Root App Module
1.75 GEEK