What command would you use to generate a new module and its associated routing in a single command using Angular CLI?

  • ng create module my-module --routing
  • ng generate module my-module --routing
  • ng module generate my-module --with-routing
  • ng new my-app --module my-module
To generate a new module with its associated routing in a single command using Angular CLI, you should use the ng generate module my-module --routing command. This command creates a new module and sets up its routing configuration simultaneously, which is a common practice in Angular applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *