Q. What is Dependency Injection in Angular?

  • (A) Manual creation of service instances
  • (B) A design pattern to supply dependencies automatically
  • (C) Directly importing modules
  • (D) Using static variables
πŸ’¬ Discuss
βœ… Correct Answer: (B) A design pattern to supply dependencies automatically
Explanation: Angular uses DI to provide components with the dependencies they need.
Explanation by: Mr. Dubey
Angular uses DI to provide components with the dependencies they need.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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