2016-06-21 4 views
1

나는 각도에있어 새로운입니다.

내가 같은, 내 서버에서 오류 메시지를 게시 할 :

enter image description here

것은 AngularJS와 사용, 이것은 내 코드입니다 :

OwnerList.batch(obArr,function(ob){ 
      return OwnerList.createItem(cleanOb(ob)); 
     },4).then(function(){ 
      $scope.Loading = false; 
     },function(response){ 
      // error function 
      console.log(response); 
      alert('') 
     },function(progress){ 
      $scope.OwnerListProgress = parseInt(progress * 100); 
     }); 

그래서 내가 넣어 무엇을해야합니까 오류 기능? 감사.

당신은 간단하게 할 수있는

답변

0

alert(response.data.message.value) 
(나는 .batch는 아약스가 $http/ $resource에 의해 이루어집니다 가정)
관련 문제