Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up$resource parameter object with array values cannot be passed to server #12115
Comments
|
This eems to work as expected. If you check out the console, you'll see that the requested URL's query part for In any case, it doesn't seem to be an issue with (Feel free to reopen, if you can provide more info showing that it is something in Angular/ngResource that causes a problem.) |
|
You are right, I found I am actually stuck with a bug in my code instead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In angular (1.3.16), for 'Stories' as a resource defined by a factory, I run
...
Stories.query({array: [1,2,3], a: 1},callback);
...
In node (latest stable),
...
router.get("/stories",function(req,res,next){
console.log(req.query);
});
....
Output:
{a: 1}
'Expected' Output:
{array: [1,2,3], a: 1}
I am not sure whether it is the same with the following fixed issue, it looks similar though
#2256