This is because of your minimum, in particular, in order to minimize and mutilate variable names.
Angular determines what value is entered into your functions from the parameter name. For instance...
angular.factory('MyFactory', function($location) {...});
... , angular '$location', $location, .
javascript, , mangle, . ...
angular.factory('MyFactory', function(a) {...});
Angular , $location a. javascript, angular. .
- , angular .
angular.factory('MyFactory', ['$location', function(a) {...}]);
, - . , , , minifier , angular , .
, , - mangle minifier. , , , , , .
- ngMin, , -. imo, js.
, mangle grunt, ...
uglify: {
options: {
report: 'min',
mangle: false
}
}
ngAnnotate . . . (ngAnnotate - , ngMin)