Q. What does the `providedIn` property in @Injectable decorator do?

  • (A) Defines where the service is available
  • (B) Defines service visibility
  • (C) Configures service lifetime
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
Explanation: It controls service registration scope, visibility, and lifetime.
Explanation by: Mr. Dubey
It controls service registration scope, visibility, and lifetime.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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