var analysisApp=angular.module('analysisApp',[]);
analysisApp.controller('analysisController',['$scope','$http','$cookies','$state','globalService',function($scope,$http,$cookies,$state,globalService){ 
}]);
In this case when u minify your code the above code may become like
var analysisApp=angular.module('analysisApp',[]);
analysisApp.controller('analysisController',['$scope','$http','$cookies','$state','globalService',function(a,b,c,d, e){ 
}]);
In this case a, b, c, d will holde the refrence of '$scope','$http','$cookies','$state','globalService' accordingly and the things will work as expected.
'$scope','$http','$cookies','$state','globalService' will not be changed because these are string as string is not changed in minification
analysisApp.controller('analysisController',function($scope,$http,$cookies,$state,globalService){   
});
But in this case after minification it may become like
analysisApp.controller('analysisController',function(a, b, c, d, e){   
});
Now all angular objects like $scope and other have lost their meaning And things will not work.