Q. How can you inject a service into a component?
β
Correct Answer: (A)
By adding it to the component constructor parameters
Explanation: Services are injected via constructor parameters and Angular DI system.