From the AngularJS 1.6.x $resource
documentation I know that I can pass in query name/value parameters using a JavaScript object. For example {foo: "bar"}
for the path path/example
will access a RESTful URL using something like path/example?foo=bar
.
But what if I want to pass a query parameter with no value, e.g. path/example?foo
? Do I use {foo: ""}
or {foo: null}
or some other form? Thanks in advance.