I don't think it's a good idea to use a config.js file when developing AngularJS apps.
The reason being, you will break any possibility for automatic testing.
Instead, I create a "Settings" service in which I specify my app specific context. For example:
angular.module('settings',[]).factory('SettingsService',function(){
var service={};
// Insert your settings here
service.ServerPath = 'whateverwhatever';
service.ImagePath = 'bla bla bal';
return service;
});
Then inject the SettingsService into controllers that need access to the settings.
Ofcourse, (which I omitted for simplicity here), you could instead create the ServiceService with an empty body, and then in the application .run() method fetch the settings from the server.
I use the simple described way, and maintain a SettingsService for each deployment type ("development", "test", "production" etc). Then just include the right SettingsService in your build-script depending on the target (I use Grunt, but you could use Ant also).