A Admin • 825.56K Points Coach Q. How can you create a service singleton available application-wide? (A) Use @Injectable({ providedIn: 'root' }) (B) Add service in component providers array (C) Add service in local module providers only (D) Create multiple instances manually Correct Answer - Option(A) Views: 11 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.