I've 3 different libraries in 3 modules in my angular project: two separate libraries which include the same third library for some shared functionality. This third library has some configuration.
Assuming each module has a service ServiceA, ServiceB and ServiceZ whith a function
ServiceA.name(){return ServiceZ.name};
ServiceB.name(){return ServiceZ.name};
ServiceZ.name(){return config.foo};
Now if I call ServiceA1.name() the result shuld be A1 and ServiceA2.name() should result in A2.
How can I achieve this behaviour in angular?
