I m reaching out to you to get assistance on the $promise issue with AngularJS.
Here is the documentation information on $resource and it will be applicable to $http as
factory does not need to return a promise.I mean that depends on how you manage your factory and controllers and how you are going to resolve it.
your factory does not return a promise but resource, so it should be resolved in your controller. your update method in controller should be like this :
$scope.UpdateEmp = function () {
var empl = $scope.Employee;
empFactory.empUpdate.update({ EmpID: $routeParams.EmpID, empval: empl }, function (successResponse) { // update method in my resource uses $resource
$location.path('/EmpList'); //redirect to list
},function (error) {
// do something on error callback
});
read about angularjs resource angularjs docs about $resource