πŸ“Š Angular
Q. What does the 'providedIn' property in @Injectable decorator specify?
  • (A) Where the service should be provided
  • (B) The template URL
  • (C) The component selector
  • (D) The style URLs
πŸ’¬ Discuss
βœ… Correct Answer: (A) Where the service should be provided

Explanation: 'providedIn' configures the service's scope (root or module).

Explanation by: Mr. Dubey
'providedIn' configures the service's scope (root or module).

πŸ’¬ Discussion


πŸ“Š Question Analytics

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