Jquery Ajax Request Works, Same Angularjs Ajax Request Doesn't
I'm learning AngularJS and trying to build front-end system that gets data from Wordpress. On the back-end side everything seems to be set up properly and when I use jQuery ajax re
Solution 1:
In the angularjs code, use params:
instead of data:
.
In jquery the object supplied to the data:
config setting is converted to a query string (?key1=val1&key2=value2) unless you set processData: false
. in angularjs, you have to use params:
to get a query string, data:
is sent as json or string.
Post a Comment for "Jquery Ajax Request Works, Same Angularjs Ajax Request Doesn't"