i try to inject a custom service into the module config function, but i get an error that the service is undefined:
var myApp = angular.module('myApp', []);
myApp.config(function($httpProvider, CommonConfigService) {
var baseUrl = CommonConfigService.getRESTUrl();
});
I use this within a couple of controllers without any problem.
Can someone hint me how to solve this?
Thanks and kind regards