πŸ“Š Angular
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

πŸ‘οΈ
30
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate