Q. What is the purpose of the `--standalone` flag in Angular CLI?

  • (A) To enable SSR
  • (B) To create a module-less component
  • (C) To add routing automatically
  • (D) To enable Ivy rendering
πŸ’¬ Discuss
βœ… Correct Answer: (B) To create a module-less component
Explanation: `--standalone` creates a component that doesn't need to be declared in an NgModule.
Explanation by: Mr. Dubey
`--standalone` creates a component that doesn't need to be declared in an NgModule.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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