What happens with $q.all() when some calls work and others fail?
I have the following code:
var entityIdColumn = $scope.entityType.toLowerCase()
Here is a small answer to it. In this fiddle you can see how it works, if an error occurs in some promise.
$q.all([test1(), test2()]).then(function() { // success }, function() { // error });
http://jsfiddle.net/wd9w0ja4/