This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
POST's should not require default params #875
Labels
Comments
When a default value of a param is prefixed with
However it does not work with defaults specified per action:
|
petrovalex
added a commit
to petrovalex/angular.js
that referenced
this issue
May 11, 2012
Closed
mhevery
pushed a commit
to mhevery/angular.js
that referenced
this issue
Sep 7, 2012
- $resource should handle multiple params with same name - ignore slashes of undefined parameters - fix default parameters issue, mentioned in angular#875 Closes angular#875 Closes angular#782
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was asked to create this issue after submitting this question http://groups.google.com/group/angular/browse_thread/thread/bb21293203c7c68f#
Apparently, when creating an angular.service, you have to specify default params in the second argument of $resource in order for the @-style POST parameters to be evaluated. If you don't specify default params, then your @params will be passed to the web server as literals as my post above shows.
The text was updated successfully, but these errors were encountered: