A Admin • 828.70K Points Coach Q. How can you inject a service into a component? (A) By adding it to the component constructor parameters (B) By importing the service file (C) By using @Injectable decorator in the component (D) By using @Component decorator Correct Answer - Option(A) Views: 12 Filed under category Angular JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.