This is a follow up to How to inherit from base provider (not the provider factory)?. The proposed solution suggests a combination of angular.extend
and angular.copy
(which can be done with just angular.merge
on Angular 1.4) to copy the base provider implementation into all other providers.
But this led to another issue that I was not expecting. With this technique, my providers are now configurable through the provider.setX
function, along with direct access to provider.config.x
property.
Here's an example demonstrating the issue: