If you are getting a post entry in the log, I suspect you may be using PHP 
in your back end. PHP does not natively parse json. The easiest workaround 
is to jQuery's param method and change the content -type header.

$http({
         method: 'POST',
         url: 'myserversidescript.php',
         data: $.param(myPostData), // pass in data as strings
         headers: {'Content-Type': 'application/x-www-form-urlencoded'} // 
required to get php to behave properly

      }).success(function(data) {
           myNewData = data;
      });

 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to