Call To A Function Within $get Of Provider Modules Causes Typeerror
This is my provider. App.provider('cloudinaryDetails', function(CloudinaryProvider){ function setCloudinaryDetails(cloudinaryDetails){ CloudinaryProvider.configure({ c
Solution 1:
Cause:
You are injecting the cloudinaryDetailsProvider "provider" but initialize is not defined on the provider, it is defined on the instance.
Suggested Fix:
To get a reference to the cloudinaryDetails "instance", create a run block and inject the instance instead of the provider.
App.run(function(cloudinaryDetails){
cloudinaryDetails.initialize();
});
See AngularJS docs for an explanation on how providers work
Post a Comment for "Call To A Function Within $get Of Provider Modules Causes Typeerror"