Question · Angular course · Module 1: Introduction to Angular

Generating a component

Which command generates a new component with the Angular CLI?

Answer options

  • ng create component name
  • ng g c name
  • ng add component name
  • ng make component name
Show the answer

Correct answer:

  • ng g c name