2016-06-21 6 views
1

私は新しい角度になっています。

私のような、私のサーバーからのエラーメッセージを投稿したい:

angularJSを使用して

enter image description here

、これは私のコードです:

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はAjaxが $http/ $resourceによってなされると仮定しました)
関連する問題