Q. Which command is used to create a new Angular standalone component?

  • (A) ng generate component
  • (B) ng new component
  • (C) ng generate component --standalone
  • (D) ng create standalone-component
πŸ’¬ Discuss
βœ… Correct Answer: (C) ng generate component --standalone
Explanation: The `--standalone` flag creates a standalone component without needing to declare it in a module.
Explanation by: Mr. Dubey
The `--standalone` flag creates a standalone component without needing to declare it in a module.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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