Angular
Angular CLI Basics - ng generate module
  •  

Introduction to ng generate module

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

In this video, we cover how to generate modules using the Angular CLI. To generate a module, you need to run the following command:

ng generate module module-name

You can add a number of flags after the module name, depending on what you need. The flags we covered in this section are:

  • --flat
  • --module
  • --routing
  • --route

For more information on generating modules, and for a list of all the flags available when generating modules, you can check out the docs.

If you'd like to learn more about modules in Angular and their role, read this section of the Angular documentation.

 

I finished! On to the next chapter