Q. Which Angular CLI command is used to generate a new component?
β
Correct Answer: (B)
ng generate component <name>
Explanation: ng generate component or shorthand ng g c creates a new component.