Q. How do you declare a service so it's available application-wide?
β
Correct Answer: (A)
Use @Injectable({ providedIn: 'root' })
Explanation: This ensures the service is a singleton and available app-wide.