You have a class called ProductDetailsComponent
and you’re injecting two services: router and cart service. It is normally done in order for components not to store business logic and to reuse services between them.
Why “injection”? Because you don’t use services directly, like CartService.addToCart()
but assigning them to the instance on the construction event
Thank you very much. That was very helpful