Q. Which decorator is used to create a new Angular service?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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