Q. What does the Angular CLI command 'ng generate component my-component' do?

  • (A) Creates a new component named 'my-component'
  • (B) Builds the app
  • (C) Starts the dev server
  • (D) Runs tests
πŸ’¬ Discuss
βœ… Correct Answer: (A) Creates a new component named 'my-component'
Explanation: This CLI command scaffolds a new component with template, style, and spec files.
Explanation by: Mr. Dubey
This CLI command scaffolds a new component with template, style, and spec files.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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