I'm working on an Angular app and I'd like to create a config file. From what I read, I should use angular constant.
So I tried to create my constant. From what I read (here, here and also here + doc), it seems quiet easy.
Here is my file :
 angular.module('app')
     .constant('config', {
         routers : {
             Commandes: 'some_data',
             Prestations: 'some_data',
             Interventions: 'some_data'
        },
         serverPath : 'some_data'
 });
As I read it's possible to inject it in a service, I tried to use it in a factory and to display it :
 app.factory('myFactory', [function(config) { 
      console.log('config : '+config);
      return // something;
}]);
But the config appears "undefined" (no error here, just console.log things). 
It seems that I'm not gettong it, but what the hell did I miss ?