Angular - Modules

Let us create a module named requirement. It will not be subordinate to the app component. This is where the requirement main screens are located. (Note: we have been creating subcomponents – for example a ‘programs dropdown’ control, lately these have been created in a more generalized location, in this case C:\dev\rcts\rcts.ui\src\app\controls. However, for now requirements is considered a module.

This is done with an ng command.

Cd c:\dev\rcts\rcts.ui\src\app

Make sure you are in the app folder of your project

Ng generate module requirement

This will create a folder named C:\dev\rcts\rcts.ui\src\app\requirement, and create a file called requirement.module.ts inside this folder.