A Admin • 802.91K Points Coach Report 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: 8 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.