vendredi 5 janvier 2018

Injecting service into factory is a good practice or not

I have one service with set of functions and one factory. Now In factory I need to use functions which are present in service.

If I inject Service as dependency in factory I can use all functions which are present in service.

But My Doubt is injecting service into factory is good practice or not? Please help me in this !!

Aucun commentaire:

Enregistrer un commentaire