Q. Which decorator is used to inject dependencies into Angular components or services?

  • (A) @Inject
  • (B) @Component
  • (C) @NgModule
  • (D) @Directive
πŸ’¬ Discuss
βœ… Correct Answer: (A) @Inject
Explanation: @Inject decorator is used for manual dependency injection.
Explanation by: Mr. Dubey
@Inject decorator is used for manual dependency injection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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