I have an angular resource configured as follows:
var resource = $resource('/api', {}, {
get: {
....
},
...,
submit: {
method: 'POST',
params: {
test: true
}
}
Now, when I call submit I would like the url to look like
/api?test=true
However, what I have not doesn't do that, the parameter is ignored. So the question is how do I add this default query param for my submit action ?
POSTplus query parameters? Please read stackoverflow.com/questions/611906/…