πŸ“Š Angular
Q. Which decorator is used to create a service in Angular?
  • (A) @Injectable()
  • (B) @Component()
  • (C) @Service()
  • (D) @NgModule()
πŸ’¬ 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

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