Q. How do you create a service singleton throughout the entire Angular application?
β
Correct Answer: (A)
Provide it in root injector using providedIn: 'root'
Explanation: This makes the service singleton and available app-wide.