Q. What is the Angular CLI command to generate a new component?

  • (A) ng generate component component-name
  • (B) ng create component-name
  • (C) ng new component component-name
  • (D) ng build component-name
πŸ’¬ Discuss
βœ… Correct Answer: (A) ng generate component component-name
Explanation: 'ng generate component' creates a new Angular component.
Explanation by: Mr. Dubey
'ng generate component' creates a new Angular component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
92
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate