Q. Which decorator allows you to inject a service into a component or another service?

  • (A) @Injectable
  • (B) @Input
  • (C) @Output
  • (D) @Component
πŸ’¬ Discuss
βœ… Correct Answer: (A) @Injectable
Explanation: @Injectable marks a class as available for dependency injection.
Explanation by: Mr. Dubey
@Injectable marks a class as available for dependency injection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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