Q. Which file is updated when a new component is added via CLI?

  • (A) angular.json
  • (B) package.json
  • (C) app.module.ts
  • (D) tsconfig.json
πŸ’¬ Discuss
βœ… Correct Answer: (C) app.module.ts
Explanation: For non-standalone components, app.module.ts is updated to declare the component.
Explanation by: Mr. Dubey
For non-standalone components, app.module.ts is updated to declare the component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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