Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$.param for AngularJs (Form Posting) #7590

Closed
hsdk123 opened this issue May 25, 2014 · 1 comment
Closed

$.param for AngularJs (Form Posting) #7590

hsdk123 opened this issue May 25, 2014 · 1 comment

Comments

@hsdk123
Copy link

hsdk123 commented May 25, 2014

I'm currently having to use $.param (JQuery) for my form post requests due to the backend server not being able to digest json requests.

It would be nice if AngularJs could add a helper function on the lines of JQuery's $.param.

My form post requests are currently as follows:

$http({
    url: ServerAddress+"/login",
    data: $.param($scope.loginForm),
    method: 'POST',
    headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
})

This is currently the only reason I have a jquery dependency on my current app. It would be nice if AngularJs could provide a similar function.

https://api.jquery.com/jquery.param/

@pkozlowski-opensource
Copy link
Member

This is essentially the same as #6039, could we move this discussion in there?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants