In Angular, we can inject $routeProvider to the config function
module.config(function ($routeProvider) {
});
I
If it can make things easier for some of you.
Per explained in this answer, you can just append Provider to your custom service and then access the internal functions using $get().
It may not be the cleanest solution, but it does the job.
module.config(function ($routeProvider, myServiceProvider) {
// Call a function hello() on myService.
myServiceProvider.$get().hello();
});