Q. What is the purpose of 'providedIn: root' in a service?
β
Correct Answer: (B)
To make the service available application-wide
Explanation: ‘providedIn: root’ registers the service in the root injector.