You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
We have an API that expects nested parameters. We'd previously been communicating with this API fine using $.ajax (which uses $.param), but Angular's $http uses a buildUrl method that is not recursive so it doesn't work with nested objects.
Two possible solutions for us right now are to use POST instead, or to manually construct a flat object with name value pairs first using $.param and then pass that into $http like so:
We have an API that expects nested parameters. We'd previously been communicating with this API fine using$.ajax (which uses $ .param), but Angular's $http uses a buildUrl method that is not recursive so it doesn't work with nested objects.
Two possible solutions for us right now are to use POST instead, or to manually construct a flat object with name value pairs first using $.param and then pass that into $http like so:
This is obviously not ideal. Is it possible to get Angular to use a more jQuery-like param serializing method for GET requests?
The text was updated successfully, but these errors were encountered: