A Admin • 833.24K Points Coach Q. How do you create a service singleton throughout the entire Angular application? (A) Provide it in root injector using providedIn: 'root' (B) Declare it in component providers (C) Use @Singleton decorator (D) Declare it in NgModule's declarations Correct Answer - Option(A) Views: 43 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.