Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.moveObj = new apiSvc.move($scope.activeMove);
- $scope.moveObj.$save()
- .then(
- // success
- function(response) {
- $scope.msgObj = {"title": "Move", "detail": "Ticket accepted and processed", "severity": "success", "module":"move"};
- $rootScope.$broadcast('notificationEvent',$scope.msgObj);
- $scope.destroy();
- },
- // failure
- function(response) {
- $scope.msgObj = {"title": "Move", "detail": "Ticket rejected", "severity": "danger", "module":"move"};
- $rootScope.$broadcast('notificationEvent',$scope.msgObj);
- $scope.activeMove.errors = response.data;
- $scope.persist();
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement