A Admin • 828.70K Points Coach Q. How do you declare a service to be provided only in a specific Angular module? (A) Add it to the 'providers' array of that module (B) Use providedIn: 'root' (C) Add it to component's providers array (D) Declare it as private Correct Answer - Option(A) Views: 8 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.