Q. How do you declare a service to be injectable throughout the app?
β
Correct Answer: (A)
Add @Injectable({ providedIn: 'root' })
Explanation: This registers the service with the root injector for app-wide singleton.