How can I serialize an object without using the "$ .param" jquery?
I want the object below:
var user = { username: 'ronald.araujo', password: '123456', };
Has the following output:
username=ronald.araujo&password=123456
Any suggestions? Remembering that I would do this using Angularjs or pure Javascript.
EDIT: I am using the verb "save" ($resource) the angularjs. How could I set the header "application / x-www-form-urlencoded" and serialize?
application/x-www-form-urlencoded
format? There's a simple lib available here - github.com/iambumblehead/form-urlencoded – Phil 57 mins agoGET
request without having to manually add the datat into the URL. – floribon 51 mins ago