πŸ“Š Angular
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

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate