Here is my configuration setup
angular.module('moduleApp.config')
.config(['$translateProvider', '$languageSupportProvider',
function($translateProvider, $languageSupportProvider) {
// Need to access data from myService.getLocale();
}]);
About My service
angular.module("moduleApp.services")
.service("moduleApp.MyService", MyService);
MyService.$inject = [];
function MyService() {
this.getLocale = function() {
// etc
return "en";
};
}
I'm facing an issue when trying to include the service in the config. How can I successfully retrieve service data within the configuration?