19 Using and creating modules

 

This chapter covers

  • Understanding the role of modules in an Angular application
  • Understanding the root module
  • Creating and using feature modules

In this chapter, I describe the last of the Angular building blocks: modules. In the first part of the chapter, I describe the root module, which every Angular application uses to describe the configuration of the application to Angular. In the second part of the chapter, I describe feature modules, which are used to add structure to an application so that related features can be grouped as a single unit. Table 19.1 puts modules in context.

19.1 Preparing the example project

19.2 Understanding the root module

19.2.1 Understanding the imports property

19.2.2 Understanding the declarations property

19.2.3 Understanding the providers property

19.2.4 Understanding the bootstrap property

19.3 Creating feature modules

19.3.1 Creating a model module

19.3.2 Creating a utility feature module

19.3.3 Creating a feature module with components

19.4 Summary