When I\'m loading the minified (through UglifyJS) version of my AngularJS application, I get the following error in the console:
Unknown provider: aProvider
Also do not forget the resolve property of the route. It also must be defined as the array:
resolve
$routeProvider.when('/foo', { resolve: { bar: ['myService1', function(myService1) { return myService1.getThis(); }], baz: ['myService2', function(myService2) { return myService2.getThat(); }] } });