A Admin • 825.56K Points Coach Q. How do you define a service as a singleton in Angular? (A) Provide it in the root injector (B) Use the providedIn: 'any' (C) Create a new instance in each component (D) Use the Injectable() without providers Correct Answer - Option(A) Views: 10 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.