angularjs - Restangular put() not working -


i using restangular angular js. get() , post() working good. put not working. here code -

$scope.submitfunction = function(isvalid) {                 if (isvalid) {                     $scope.post = {};                     $scope.post.id = $scope.form.id;                     $scope.post.code = $scope.form.code;                     $scope.post.description = $scope.form.description;                     restangular.one('manufacturing/process', $scope.processid). get(). then( function(response1) {                          $scope.post.version = response1.data.version;                         $scope.post.put().then(function(response) {                             alert('updated');                         }, function(response) {                             alert('error);                         });                     }, function(response1) {                             alert('error);                     });                 }             }; 

it gives me error = $scope.post.put not function

in code, object $scope.post references following object

$scope.post = {}; 

and not rectangular rest service.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -